code: def _bytes_feature(value):
      """Returns a bytes_list from a string / byte."""
      if isinstance(value, type(tf.constant(0))):
          value = value.numpy()  # pytype: disable=attribute-error
      return tf.train.Feature(
          bytes_list=tf.train.BytesList(value=[value])
      )
  
file_path: graphics/tensorflow_graphics/projects/radiance_fields/data_loaders.py
imports: import json
  import os
  from typing import Optional
  import numpy
  from PIL import Image
  import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: _bytes_feature(value) and returns: tf