code: def _get_feature(spec, feature_name):
      for input_feature in spec.description.input:
          if input_feature.name == feature_name:
              return input_feature
  
      for output_feature in spec.description.output:
          if output_feature.name == feature_name:
              return output_feature
  
      raise Exception(
          "Feature with name {} does not exist".format(feature_name)
      )
  
imports: from collections.abc import Iterable
  from functools import lru_cache
  import math
  import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from typing import Optional, Union
  import warnings
  import numpy
  import coremltools
  from coremltools import ComputeUnit
  from coremltools.converters.mil.mil.passes.defs.preprocess import NameSanitizer
  from coremltools.proto import Model_pb2
  import coremltools.proto.MIL_pb2
  from .._deps import _HAS_SCIPY
label_desc: Use image node_id 27 for calling a global function with example usage: _get_feature(spec, feature_name) and returns: input_feature, output_feature