code: def get_param_val(param):
      """
      Given a param, if it is not None, returns param.val, else returns None.
      """
      if param is None:
          return None
      return param.val
  
imports: import math
  import numbers
  from typing import List, Tuple
  import numpy
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Var, get_new_symbol, types
  from coremltools.converters.mil.mil.ops.defs.iOS15.elementwise_unary import cast
  from coremltools.converters.mil.mil.types import builtin_to_string, promote_dtypes
  from coremltools.converters.mil.mil.types.symbolic import is_symbolic
label_desc: Use image node_id 11 for calling a global function with example usage: get_param_val(param) and returns: param, None