code: def _Close(self):
      
      if not self._file_object_set_in_init:
        try:
          # TODO: fix close being called for the same object multiple times.
          self._file_object.close()
        except IOError:
          pass
        self._file_object = None
docs: Closes the file-like object.
  
      If the file-like object was passed in the init function the file
      object-based file-like object does not control the file-like object
      and should not actually close it.