code: def from_java(cls, java_sequence_info: JavaObject) -> "SequenceInfo":
      length = java_gateway.get_field(java_sequence_info, "length")
      sequence_of_maps = java_gateway.get_field(
          java_sequence_info, "sequenceOfMaps"
      )
      map_info = MapInfo.from_java(
          java_gateway.get_field(java_sequence_info, "mapInfo"),
      )
      sequence_type = java_gateway.get_field(
          java_sequence_info,
          "sequenceType",
      ).toString()
      return cls(length, sequence_of_maps, map_info, sequence_type)
  
imports: from abc import ABCMeta
  import sys
  from typing import Mapping, List
  from py4j import java_gateway
  from synapse.ml.onnx._ONNXModel import _ONNXModel
  from pyspark.ml.common import inherit_doc
  from py4j.java_gateway import JavaObject
label_desc: Use image node_id 4 for calling the SequenceInfo obj's underlying member method code with example usage: obj.from_java(cls, java_sequence_info) and returns: cls