code: def _check_value(value, name):
      try:
          _ = 1 / value
  
      except ZeroDivisionError:
          raise ValueError(
              f"The value of {name} is too small "
              f"or zero to be used in 1/{name}."
          )
  
imports: import random
  from functools import partial
  from typing import List, Callable
  import numpy
  import networkx
label_desc: Use image node_id 1 for calling a global function with example usage: _check_value(value, name) without return types