code: def _get_feature_description_summary(feature):
      if feature.type.HasField("multiArrayType"):
          shape = list(feature.type.multiArrayType.shape)
          int_shape = [int(x) for x in shape]
          return str(int_shape)
      else:
          return ("({})".format(str(feature.type))).replace("\n", "")
  
file_path: coremltools/coremltools/models/neural_network/spec_inspection_utils.py
imports: from ...proto import NeuralNetwork_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: _get_feature_description_summary(feature) and returns: str, str