code: def test_bf16_to_float32():
      x = tf.random.uniform(
          shape=[8], minval=0, maxval=1, dtype=tf.bfloat16
      )
      m = _bf16_to_float32(x)
      assert (
          x.dtype == tf.bfloat16
          and m.dtype == tf.float32
          and tf.reduce_all(tf.equal(m, tf.cast(x, tf.float32)))
      )
  
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 2 for calling a global function with example usage: test_bf16_to_float32() without return types