def __init__(self, resolver_context, file_object=None):
    """Initializes a file-like object.

    Args:
      resolver_context (Context): resolver context.
      file_object (Optional[FileIO]): file-like object.
    """
    super(FileObjectIO, self).__init__(resolver_context)
    self._file_object = file_object
    self._file_object_set_in_init = bool(file_object)
    self._size = None
def __init__ ( self , resolver_context , file_object = None ) : super ( FileObjectIO , self ) . __init__ ( resolver_context ) self . _file_object = file_object self . _file_object_set_in_init = bool ( file_object ) self . _size = None
Initializes a file-like object.

    Args:
      resolver_context (Context): resolver context.
      file_object (Optional[FileIO]): file-like object.