code: def _extract_apply_in_data(inputs):
      # Extracts arrays from FunctionNode.apply() inputs.
      #
      # A flag that indicates whether inputs are chainerx arrays is also
      # returned.
      #
      # Each object in `inputs` may be `Variable` or an array.
      # If it's a `Variable` and its underlying array is a chainerx array,
      # `Variable._data[0]` (which is backproppable in contrast to
      # `Variable.array`) is returned.
      #
      # If at least one of the arrays is a ChainerX array, all other
      # arrays need to be ChainerX arrays.
      if not inputs:
          return False, ()
  
      if chainerx.is_available():
          has_chainerx_array = False
  
          # Unwrap arrays
          arrays = []
          for x in inputs:
              if isinstance(x, variable.Variable):
                  arrays.append(x._data[0])
                  if x._has_chainerx_array:
                      has_chainerx_array = True
              else:  # x is ndarray
                  arrays.append(x)
                  if not has_chainerx_array:
                      if isinstance(x, chainerx.ndarray):
                          has_chainerx_array = True
          return has_chainerx_array, tuple(arrays)
      else:
          return False, tuple(
              [
                  x.raw_array if isinstance(x, variable.Variable) else x
                  for x in inputs
              ]
          )
  
imports: import collections
  import contextlib
  import heapq
  import inspect
  import traceback
  import weakref
  import six
  import chainer
  from chainer import _backprop_utils
  from chainer import backend
  from chainer.backends import cuda
  from chainer import configuration
  from chainer import function_hook
  from chainer.graph_optimizations.static_graph_utilities import static_forward_optimizations
  from chainer import utils
  from chainer.utils import type_check
  from chainer import variable
  import chainerx
label_desc: Use image node_id 4 for calling a global function with example usage: _extract_apply_in_data(inputs) and returns: False,  , has_chainerx_array,  tuple, False,  tuple