code: def _all_equal(arg):
      """Check if all elements of arg are equal."""
      return arg.count(arg[0]) == len(arg)
  
imports: import math
  import geomstats.backend
  import geomstats.errors
  from geomstats.geometry.complex_manifold import ComplexManifold
  from geomstats.geometry.complex_riemannian_metric import ComplexRiemannianMetric
  from geomstats.geometry.manifold import Manifold
  from geomstats.geometry.riemannian_metric import RiemannianMetric
  from geomstats.vectorization import get_batch_shape
label_desc: Use image node_id 3 for calling a global function with example usage: _all_equal(arg) and returns: unknown