code: def check_arrays_nest(arrays, spec):
      """Check that the arrays conform to the spec.
  
      Args:
        arrays: A NumPy array, or a nested dict, list or tuple of arrays.
        spec: An `ArraySpec`, or a nested dict, list or tuple of `ArraySpec`s.
  
      Returns:
        True if the arrays conforms to the spec, False otherwise.
      """
      # Check that arrays and spec has the same structure.
      try:
          assert_arrays_spec_nest(arrays, spec)
          return True
      except (TypeError, ValueError):
          return False
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numbers
  import gin
  import numpy
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: check_arrays_nest(arrays, spec) and returns: True, False