code: def is_python_value(val):
      return (
          isinstance(val, (np.generic, np.ndarray))
          or isinstance(val, numbers.Number)
          or isinstance(val, six.string_types)
          or isinstance(val, bool)
          or (
              isinstance(val, (tuple, list))
              and all(is_python_value(v) for v in val)
          )
      )
  
imports: from collections import defaultdict
  import copy
  import logging
  import six
  import numbers
  import numpy
  from coremltools.converters.mil.mil.types.symbolic import any_symbolic
  from .None import curr_block, Program, Function, Placeholder, is_internal_input
  from .input_type import _InputType, InternalStringInputType, InternalScalarOrTensorInputType, ScalarOrTensorInputType, TupleInputType, InputSpec, InternalInputType, PyFunctionInputType
  from .var import InternalVar, Var
  from .ops import defs
label_desc: Use image node_id 2 for calling a global function with example usage: is_python_value(val) and returns: unknown