code: def _check_log_solver(connection, raise_=True):
      if not hasattr(connection, "log_solver"):
          if raise_:
              raise ValueError(
                  "Requires `self.log_solver`. "
                  "Check `geomstats.numerics.geodesic` for available solvers."
              )
          return False
      return True
  
imports: from abc import ABC
  import geomstats.backend
  import geomstats.errors
label_desc: Use image node_id 1 for calling a global function with example usage: _check_log_solver(connection, raise_) and returns: True, False