code: def _is_shape_and_default_value_compatible(default_value, shape):
      """Verifies compatibility of shape and default_value."""
      # Invalid condition:
      #  * if default_value is not a scalar and shape is empty
      #  * or if default_value is an iterable and shape is not empty
      if nest.is_nested(default_value) != bool(shape):
          return False
      if not shape:
          return True
      if len(default_value) != shape[0]:
          return False
      for i in range(shape[0]):
          if not _is_shape_and_default_value_compatible(
              default_value[i], shape[1:]
          ):
              return False
      return True
  
file_path: tensorflow/tensorflow/python/feature_column/utils.py
imports: import six
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 7 for calling a global function with example usage: _is_shape_and_default_value_compatible(default_value, shape) and returns: True, False, True, False, False