docstr: Called from ImageFile to set the Python file-like object
  
  :param fd: A Python file-like object
  :returns: None
docstr_tok: ["Called","from","ImageFile","to","set","the","Python","file-like","object",":","param","fd",":","A","Python","file-like","object",":","returns",":","None"]
code: def setfd(self, fd):
      """
      Called from ImageFile to set the Python file-like object
  
      :param fd: A Python file-like object
      :returns: None
      """
      self.fd = fd
  
imports: import io
  import itertools
  import struct
  import sys
  from .None import Image
  from ._util import is_path
label_desc: Use image node_id 4 for calling the PyCodec obj's underlying member method code with example usage: obj.setfd(fd) without return types