code: def _create_enum_avro_record(schema: AvroSchema, enum_value):
      jvm = get_gateway().jvm
      j_record = jvm.GenericData.Record(schema._j_schema)
      j_enum = jvm.GenericData.EnumSymbol(
          schema._j_schema.getField("suit").schema(), enum_value
      )
      j_record.put("suit", j_enum)
      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 18 for calling a global function with example usage: _create_enum_avro_record(schema, enum_value) and returns: j_record