code: def wrap_rank_shape_assert(tensors_list, expected_ranks, op_name):
      try:
          for tensors, rank in zip(tensors_list, expected_ranks):
              assert_rank_and_shape_compatibility(tensors, rank)
      except ValueError as e:
          error_message = (
              "{}: Error in rank and/or "
              "compatibility check, {}".format(op_name, e)
          )
          tf.logging.error(error_message)
          raise ValueError(error_message)
  
file_path: trfl/trfl/base_ops.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from six.moves import zip
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling a global function with example usage: wrap_rank_shape_assert(tensors_list, expected_ranks, op_name) without return types