docstr: Check if the program consists of opsets not supported by runtime.
docstr_tok: ["Check","if","the","program","consists","of","opsets","not","supported","by","runtime","."]
code: def _check_invalid_opset(self):
      """
      Check if the program consists of opsets not supported by runtime.
      """
      dialect_namespaces = self._get_dialect_namespaces()
      if len(dialect_namespaces) != 0:
          for dialect_key in list(dialect_namespaces.keys()):
              if (
                  dialect_key
                  not in self._get_runtime_supported_dialect_opset()
              ):
                  invalid_op = dialect_namespaces[dialect_key][0]
                  raise ValueError(
                      f'Core ML only support core opset. Got unsupported op "{invalid_op.name}" with type "{invalid_op.op_type}" of dialect namespace "{invalid_op._dialect_namespace}".'
                  )
  
imports: from collections import defaultdict
  from typing import Dict, List
  import numpy
  import sympy
  from coremltools import _logger
  from coremltools.converters.mil._deployment_compatibility import AvailableTarget
  from coremltools.converters.mil.input_types import InputType
  from coremltools.converters.mil.mil.input_type import InternalInputType
  from coremltools.converters.mil.mil.ops.helper import _get_version_of_op
  from coremltools.converters.mil.mil.var import ListVar
  from .None import types
  from .block import Function
  from .operation import Operation
  from .types.symbolic import k_num_internal_syms, k_used_symbols
  from .var import Var
label_desc: Use image node_id 10 for calling the Program obj's underlying member method code with example usage: obj._check_invalid_opset() without return types