code: def assert_type(
      tensor: ragged_tensor.Ragged, tf_type, message=None, name=None
  ):
      return check_ops.assert_type(
          tensor.flat_values, tf_type, message=message, name=name
      )
  
imports: from tensorflow.python.ops import check_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.util import dispatch
label_desc: Use image node_id 1 for calling a global function with example usage: assert_type(tensor, tf_type, message, name) and returns: check_ops