code: def _check_nonnegative(value: Union[int, float], name: str):
      if value < 0:
          raise ValueError(
              f"Provided {name} must be non-negative, got {value}"
          )
  
file_path: privacy/tensorflow_privacy/privacy/analysis/tree_aggregation_accountant.py
imports: import functools
  import math
  from typing import Collection, Optional, Union
  import dp_accounting
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _check_nonnegative(value, name) without return types