def _is_random_access_file_backed(fileobj):
 return (isfile(fileobj) or isinstance(fileobj, gzip.GzipFile))

def _is_random_access_file_backed ( fileobj ) : return ( isfile ( fileobj ) or isinstance ( fileobj , gzip . GzipFile ) )
returns true if fileobj is a file or io .