code: def set_main_input_types(self, inputs):
      if not isinstance(inputs, tuple):
          raise ValueError(
              "main inputs should be tuple of TensorType or ImageType"
          )
      elif not all([isinstance(inp, InputType) for inp in inputs]):
          raise ValueError("main inputs should be tuple of InputSpec")
      self.main_input_types = inputs
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import logging
  import numpy
  import sympy
  from .None import types
  from .block import Function
  from .var import Var
  from .types.symbolic import k_used_symbols, k_num_internal_syms
  from coremltools.converters.mil.input_types import InputType
label_desc: Use image node_id 4 for calling the Program obj's underlying member method code with example usage: obj.set_main_input_types(inputs) without return types