code: def test_copy_tensor():
      x = tf.random.uniform(shape=[8], minval=0, maxval=1)
      m = _copy_tensor(x)
      assert (
          m.device == x.device
          and m.dtype == x.dtype
          and m.shape == x.shape
          and tf.reduce_all(tf.equal(m, x))
      )
  
file_path: doctr/tests/tensorflow/test_models_utils_tf.py
imports: import os
  import pytest
  import tensorflow
  from tensorflow.keras import Sequential, layers
  from tensorflow.keras.applications import ResNet50
  from doctr.models.utils import IntermediateLayerGetter, _bf16_to_float32, _copy_tensor, conv_sequence, load_pretrained_params
label_desc: Use image node_id 1 for calling a global function with example usage: test_copy_tensor() without return types