code: def _read_avro_file(self) -> List[dict]:
      records = []
      for file in glob.glob(
          os.path.join(os.path.join(self.avro_dir_name, "**/*"))
      ):
          for record in DataFileReader(open(file, "rb"), DatumReader()):
              records.append(record)
      return records
  
imports: import glob
  import os
  import tempfile
  from typing import Tuple, List
  from avro.datafile import DataFileReader
  from avro.io import DatumReader
  from py4j.java_gateway import JavaObject, java_import
  from pyflink.datastream import MapFunction
  from pyflink.datastream.connectors.file_system import FileSink
  from pyflink.datastream.formats.avro import AvroSchema, GenericRecordAvroTypeInfo, AvroBulkWriters, AvroInputFormat
  from pyflink.datastream.tests.test_util import DataStreamTestSinkFunction
  from pyflink.java_gateway import get_gateway
  from pyflink.testing.test_case_utils import PyFlinkUTTestCase
label_desc: Use image node_id 8 for calling the FileSinkAvroWritersTests obj's underlying member method code with example usage: obj._read_avro_file() and returns: records