class_docstr: Class for the Hypersphere Metric.
docstr: Compute the squared norm of a vector.
  
  Squared norm of a vector associated with the inner-product
  at the tangent space at a base point.
  
  Parameters
  ----------
  vector : array-like, shape=[..., dim + 1]
      Vector on the tangent space of the hypersphere at base point.
  base_point : array-like, shape=[..., dim + 1], optional
      Point on the hypersphere.
  
  Returns
  -------
  sq_norm : array-like, shape=[..., 1]
      Squared norm of the vector.
docstr_tok: ["Compute","the","squared","norm","of","a","vector",".","Squared","norm","of","a","vector","associated","with","the","inner-product","at","the","tangent","space","at","a","base","point",".","Parameters","--","--","--","--","--","vector",":","array-like",",","shape=","[","...",",","dim","+","1","]","Vector","on","the","tangent","space","of","the","hypersphere","at","base","point",".","base_point",":","array-like",",","shape=","[","...",",","dim","+","1","]",",","optional","Point","on","the","hypersphere",".","Returns","--","--","--","-","sq_norm",":","array-like",",","shape=","[","...",",","1","]","Squared","norm","of","the","vector","."]
code: def squared_norm(self, vector, base_point=None):
      """Compute the squared norm of a vector.
  
      Squared norm of a vector associated with the inner-product
      at the tangent space at a base point.
  
      Parameters
      ----------
      vector : array-like, shape=[..., dim + 1]
          Vector on the tangent space of the hypersphere at base point.
      base_point : array-like, shape=[..., dim + 1], optional
          Point on the hypersphere.
  
      Returns
      -------
      sq_norm : array-like, shape=[..., 1]
          Squared norm of the vector.
      """
      return self._space.embedding_space.metric.squared_norm(vector)
  
imports: import logging
  import math
  from itertools import product
  from scipy.stats import beta
  import geomstats.algebra_utils
  import geomstats.backend
  from geomstats.geometry.base import LevelSet
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.riemannian_metric import RiemannianMetric
  from geomstats.vectorization import get_batch_shape, repeat_out
label_desc: Use image node_id 3 for calling the HypersphereMetric obj's underlying member method code with example usage: obj.squared_norm(vector, base_point) and returns: self