code: def close(self):
          
  
          if self.fp:
              self.fp.close()
              self.fp = None
  
          if self.fp_extra:
              self.fp_extra.close()
              self.fp_extra = None
  
          self.ctype = None
docs: Close a file pointer.