code: def from_java(cls, java_value_info: JavaObject) -> "ValueInfo":
      className = java_value_info.getClass().getName()
      if className == "ai.onnxruntime.TensorInfo":
          return TensorInfo.from_java(java_value_info)
      elif className == "ai.onnxruntime.MapInfo":
          return MapInfo.from_java(java_value_info)
      else:
          return SequenceInfo.from_java(java_value_info)
  
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 1 for calling the ValueInfo obj's underlying member method code with example usage: obj.from_java(cls, java_value_info) and returns: TensorInfo, MapInfo, SequenceInfo