code: def _scale_radius_size(image, filepath, target_radius_size):
      """Scale the input image so that the radius of the eyeball is the given."""
      cv2 = tfds.core.lazy_imports.cv2
      x = image[image.shape[0] // 2, :, :].sum(axis=1)
      r = (x > x.mean() / 10.0).sum() / 2.0
      if r < 1.0:
          # Some images in the dataset are corrupted, causing the radius heuristic to
          # fail. In these cases, just assume that the radius is the height of the
          # original image.
          logging.info(
              'Radius of image "%s" could not be determined.', filepath
          )
          r = image.shape[0] / 2.0
      s = target_radius_size / r
      return cv2.resize(image, dsize=None, fx=s, fy=s)
  
imports: import csv
  import io
  import os
  from absl import logging
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling a global function with example usage: _scale_radius_size(image, filepath, target_radius_size) and returns: cv2