code: def _get_io_supported_types(opset_version: target) -> Set[type]:
      """Get Core ML I/O supported data types based on opset version."""
      supported_types = {types.fp32, types.int32}
      if opset_version is not None and opset_version >= target.iOS16:
          supported_types.add(types.fp16)
      return supported_types
  
file_path: coremltools/coremltools/converters/mil/backend/mil/passes/adjust_io_to_supported_types.py
imports: from typing import Set
  from coremltools import _logger
  from coremltools.converters.mil._deployment_compatibility import AvailableTarget
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.passes.graph_pass import AbstractGraphPass
  from coremltools.converters.mil.mil.passes.helper import block_context_manager
  from coremltools.converters.mil.mil.passes.pass_registry import register_pass
label_desc: Use image node_id 2 for calling a global function with example usage: _get_io_supported_types(opset_version) and returns: supported_types