code: def _array_to_cpu(array, stream):
      if array is None:
          return None
      if isinstance(array, ndarray):
          check_cuda_available()
          with get_device_from_array(array):
              return array.get(stream)
      return _cpu._array_to_cpu(array)
  
imports: import binascii
  import functools
  import itertools
  import os
  import threading
  import time
  import typing
  import warnings
  import numpy
  import six
  import chainer
  from chainer import _backend
  from chainer.backends import _cpu
  from chainer.backends import intel64
  from chainer.configuration import config
  from chainer import types
  import chainerx
label_desc: Use image node_id 10 for calling a global function with example usage: _array_to_cpu(array, stream) and returns: _cpu, None, array