code: def read_file(fo):
      """Get rows from file-like"""
      import fastavro
  
      if hasattr(fastavro, "iter_avro"):
          reader = fastavro.iter_avro
      else:
          reader = fastavro.reader
  
      with fo as f:
          return list(reader(f))
  
file_path: dask/dask/bag/avro.py
imports: from __future__ import annotations
  import io
  import uuid
  from fsspec.core import OpenFile, get_fs_token_paths, open_files
  from fsspec.utils import read_block
  from fsspec.utils import tokenize
  from dask.highlevelgraph import HighLevelGraph
label_desc: Use image node_id 7 for calling a global function with example usage: read_file(fo) and returns: list