code: def has_open_file(self, file_object):
          
          return (file_object in [wrappers[0].get_object()
                                  for wrappers in self.open_files if wrappers])
docs: Return True if the given file object is in the list of open files.
  
          Args:
              file_object: The FakeFile object to be checked.
  
          Returns:
              `True` if the file is open.