code: def _shrink_level_to_arg(level):
      """Converts level to ratio by which we shrink the image content."""
      if level == 0:
          return (1.0,)  # if level is zero, do not shrink the image
      # Maximum shrinking ratio is 2.9.
      level = 2.0 / (_MAX_LEVEL / level) + 0.9
      return (level,)
  
imports: import dataclasses
  import inspect
  import math
  import tensorflow.compat.v1
  from tensorflow_addons import image
label_desc: Use image node_id 24 for calling a global function with example usage: _shrink_level_to_arg(level) and returns: level, int