code: def _create_map_avro_record(schema, map: dict):
      jvm = get_gateway().jvm
      j_record = jvm.GenericData.Record(schema._j_schema)
      j_map = jvm.java.util.HashMap()
      for k, v in map.items():
          j_map.put(k, v)
      j_record.put("map", j_map)
      return j_record
  
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 21 for calling a global function with example usage: _create_map_avro_record(schema, map) and returns: j_record