code: def register_with(name):
      def decorator(func):
          if name not in _get_features_associated_with:
              _get_features_associated_with[name] = func
          else:
              raise ValueError(
                  "Function is already registered with {}".format(name)
              )
          return func
  
      return decorator
  
file_path: coremltools/coremltools/converters/mil/_deployment_compatibility.py
imports: from enum import IntEnum
  from coremltools import _SPECIFICATION_VERSION_IOS_13, _SPECIFICATION_VERSION_IOS_14, _SPECIFICATION_VERSION_IOS_15, _SPECIFICATION_VERSION_IOS_16, _SPECIFICATION_VERSION_IOS_17
label_desc: Use image node_id 1 for calling a global function with example usage: register_with(name) and returns: decorator, func