code: def asarray(a):
      """Pypy-safe version of np.asarray. Pypy's np.asarray consumes a
      *lot* of memory if the given array is an ndarray subclass. This
      function does not.
      """
      if isinstance(a, np.ndarray):
          if IS_PYPY:  # pragma: no cover
              a = a.copy()  # pypy has issues with base views
          plain = a.view(type=np.ndarray)
          return plain
      return np.asarray(a)
  
imports: from collections import OrderedDict
  import numpy
  import os
  import re
  import struct
  import sys
  import time
  import logging
label_desc: Use image node_id 4 for calling a global function with example usage: asarray(a) and returns: np, plain