code: def get_const_mode(val):
      # Heuristics to decide between file_value and immediate_value
      if isinstance(val, (np.ndarray, np.generic)) and val.size > 10:
          return "file_value"
      return "immediate_value"
  
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 1 for calling a global function with example usage: get_const_mode(val) and returns: str, str