code: def _image_of_size(image_size):
      """Generate a square RGB test image of the given side length."""
      return np.random.uniform(
          0, 256, [image_size, image_size, 3]
      ).astype(np.uint8)
  
file_path: tensorboard/tensorboard/encode_png_benchmark.py
imports: import datetime
  import threading
  import time
  from absl import app
  from absl import logging
  import numpy
  from tensorboard.util import encoder
  from tensorboard.util import tb_logging
label_desc: Use image node_id 2 for calling a global function with example usage: _image_of_size(image_size) and returns: np