code: def check_belongs(point, manifold, **kwargs):
      """Raise an error if point does not belong to the input manifold.
  
      Parameters
      ----------
      point : array-like
          Point to be tested.
      manifold : Manifold
          Manifold to which the point should belong.
      manifold_name : string
          Name of the manifold for the error message.
      """
      if not gs.all(manifold.belongs(point, **kwargs)):
          raise RuntimeError(
              f"Some points do not belong to manifold '{type(manifold).__name__}'"
              f" of dimension {manifold.dim}."
          )
  
file_path: geomstats/geomstats/errors.py
imports: import math
  import geomstats.backend
label_desc: Use image node_id 3 for calling a global function with example usage: check_belongs(point, manifold) without return types