code: def _check_bandwidth(bandwidth):
      """Check if the bandwidth is a positive real number."""
      if gs.any(bandwidth <= 0):
          raise ValueError(
              "The bandwidth should be a positive real number."
          )
      bandwidth = gs.array(bandwidth, dtype=float)
      return bandwidth
  
file_path: geomstats/geomstats/learning/radial_kernel_functions.py
imports: import geomstats.backend
label_desc: Use image node_id 2 for calling a global function with example usage: _check_bandwidth(bandwidth) and returns: bandwidth