code: def _bf16_to_float32(x: tf.Tensor) -> tf.Tensor:
      # Convert bfloat16 to float32 for numpy compatibility
      return tf.cast(x, tf.float32) if x.dtype == tf.bfloat16 else x
  
file_path: doctr/doctr/models/utils/tensorflow.py
imports: import logging
  import os
  from typing import Any, Callable, List, Optional, Tuple, Union
  from zipfile import ZipFile
  import tensorflow
  import tf2onnx
  from tensorflow.keras import Model, layers
  from doctr.utils.data import download_from_url
label_desc: Use image node_id 2 for calling a global function with example usage: _bf16_to_float32(x) and returns: unknown