code: def write_array(self, writer_schema, datum, encoder):
      if len(datum) > 0:
          encoder.write_var_long(len(datum))
          for item in datum:
              self.write_data(writer_schema.items, item, encoder)
      encoder.write_long(0)
  
imports: import struct
  from avro.io import AvroTypeException, BinaryDecoder, BinaryEncoder, DatumReader, DatumWriter, SchemaResolutionException, Validate
label_desc: Use image node_id 2 for calling the FlinkAvroDatumWriter obj's underlying member method code with example usage: obj.write_array(writer_schema, datum, encoder) without return types