code: def _validate_input_has_same_type(*args):
      tensor_type = type(args[-1])
      for arg in args[:-1]:
          if not isinstance(arg, tensor_type):
              raise ValueError(
                  "Input tensors must be of the same type: %s vs %s."
                  % (type(arg), tensor_type)
              )
  
file_path: text/tensorflow_text/python/ops/boise_offset_converter.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from tensorflow.python.framework import ops
  from tensorflow.python.ops.ragged import ragged_conversion_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensor
  from tensorflow.python.framework import load_library
  from tensorflow.python.platform import resource_loader
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_input_has_same_type() without return types