code: def _check_scale(scale: types.FloatLike) -> types.FloatLike:
      if scale < 0:
          raise ValueError("scale must be >=0")
      return scale
  
imports: import abc
  from typing import Sequence
  from sonnet.src import types
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _check_scale(scale) and returns: scale