code: def asarray(*args):
      if len(args) == 1 and hasattr(args[0], "__iter__"):
          return numpy.asanyarray(list(args[0]))
      else:
          return numpy.asanyarray(list(args))
  
imports: from collections import OrderedDict, UserDict
  from contextlib import ExitStack
  import math
  from typing import Mapping
  import click
  import numpy
  import rasterio
  from rasterio._vendor import snuggs
  from rasterio.features import sieve
  from rasterio.fill import fillnodata
  from rasterio.rio import options
  from rasterio.rio.helpers import resolve_inout
  from rasterio.windows import Window
label_desc: Use image node_id 4 for calling a global function with example usage: asarray() and returns: numpy, numpy