code: def check_positive(param, param_name):
      """Raise an error if param is not a > 0 number.
  
      Parameters
      ----------
      param : unspecified
         Parameter to be tested.
      param_name : string
         Name of the parameter.
      """
      if not (
          (
              isinstance(param, (int, float))
              or (gs.is_array(param) and param.ndim == 0)
          )
          and param > 0
      ):
          raise ValueError(f"{param_name} must be positive.")
  
file_path: geomstats/geomstats/errors.py
imports: import math
  import geomstats.backend
label_desc: Use image node_id 2 for calling a global function with example usage: check_positive(param, param_name) without return types