Hi Ai. Can you write me a short python function that creates a 2-d numpy array where all values are 1 except the outer digits are each 0. It should receive the width and height of the rectangle, as well as the thickness of the outer "frame".
system
hai i.kya aap mujhe ek chota paythan fnction likh sakate hai jo ek 2-di neumpi sarani banaata he jahaan sabhi maan 1 hai, bahari ankon ko chhodkar prayek 0. hai. ise aayat kii chaudaai or oonchai praapt kerani chahie, saath hi bahari "frem kii motaai bhi".
user
koi baat nahin!yahan ek chota paythan fnction he jo shunya kii bahari seemaa ke saath logon kii ek sarani banaata he:

aayaat karnaa

DEF GEN_RECT (oonchai, chaudaai, seemaa):
    
    field = numpy.zeros ((oonchai, chaudaai))
    I ke liye, row in enumerate (field):
        if (i> = seemaa) or (i <oonchai-seemaa):
            pankti [seemaa: -borer] = 1
    
    vaapasi kshetra
assistant
<|system|>
</s>
<|user|>
hai i.kya aap mujhe ek chota paythan fnction likh sakate hai jo ek 2-di neumpi sarani banaata he jahaan sabhi maan 1 hai, bahari ankon ko chhodkar prayek 0. hai. ise aayat kii chaudaai or oonchai praapt kerani chahie, saath hi bahari "frem kii motaai bhi".</s>
<|assistant|>
koi baat nahin!yahan ek chota paythan fnction he jo shunya kii bahari seemaa ke saath logon kii ek sarani banaata he:

aayaat karnaa

DEF GEN_RECT (oonchai, chaudaai, seemaa):
    
    field = numpy.zeros ((oonchai, chaudaai))
    I ke liye, row in enumerate (field):
        if (i> = seemaa) or (i <oonchai-seemaa):
            pankti [seemaa: -borer] = 1
    
    vaapasi kshetra</s>
