code: def asnumpy(x):
      if x is None:
          return None
      if isinstance(x, list):
          return [asnumpy(y) for y in x]
      if isinstance(x, np.ndarray):
          return x
      return _to_numpy(x)
  
imports: import functools
  import numpy
  import nvidia.dali.fn
  import nvidia.dali.ops
  from nvidia.dali import Pipeline
  from nose_utils import assert_raises
  from test_utils import check_output
label_desc: Use image node_id 3 for calling a global function with example usage: asnumpy(x) and returns: _to_numpy, None, unknown, x