code: def is_python_value(val):
      return (
          isinstance(val, (np.generic, np.ndarray))
          or isinstance(val, numbers.Number)
          or isinstance(val, str)
          or isinstance(val, bool)
          or (
              isinstance(val, (tuple, list))
              and all(is_python_value(v) for v in val)
          )
      )
  
imports: import numbers
  from collections import defaultdict
  from typing import Callable, List, Optional
  import numpy
  from coremltools import _logger
  from coremltools.converters.mil._deployment_compatibility import AvailableTarget
  from coremltools.converters.mil.mil.types.symbolic import any_symbolic
  from .block import Function, curr_block
  from .input_type import InternalInputType, ListOrTensorInputType, TensorInputType, TupleInputType
  from .program import Placeholder, Program
  from .var import InternalVar, Var
label_desc: Use image node_id 1 for calling a global function with example usage: is_python_value(val) and returns: unknown