code: def _translate_level_to_arg(level, translate_const):
      level = (level / _MAX_LEVEL) * float(translate_const)
      # Flip level to negative with 50% chance.
      level = _randomly_negate_tensor(level)
      return (level,)
  
imports: import dataclasses
  import inspect
  import math
  import tensorflow.compat.v1
  from tensorflow_addons import image
label_desc: Use image node_id 27 for calling a global function with example usage: _translate_level_to_arg(level, translate_const) and returns: level