code: def test_poincare_ball_distance_vs_euclidean(seeded):
      for _ in range(100):
          # d_c(0, x) is approximtely 2||x||_2 for sufficiently small x
          c, vs = _generate(17, norm_range=(0, 0.01))
  
          zeros = np.zeros_like(vs)
          hyperbolic = poincare_ball_distance(c, zeros, vs)
          assert hyperbolic.shape == vs.shape[:-1]
  
          euclidean = np.linalg.norm(vs, axis=-1)
          np.testing.assert_allclose(
              hyperbolic, 2 * euclidean, rtol=1e-3, atol=1e-15
          )
  
          # d_c(0, x) is much larger than 2||x||_2 for sufficiently large x
          c, vs = _generate(17, norm_range=(0.99, 1))
          zeros = np.zeros_like(vs)
          hyperbolic = poincare_ball_distance(c, zeros, vs)
          assert hyperbolic.shape == vs.shape[:-1]
  
          euclidean = np.linalg.norm(vs, axis=-1)
          np.testing.assert_array_less(4 * euclidean, hyperbolic)
  
file_path: stellargraph/tests/utils/test_hyperbolic.py
imports: import pytest
  import numpy
  from stellargraph.utils.hyperbolic import *
label_desc: Use image node_id 6 for calling a global function with example usage: test_poincare_ball_distance_vs_euclidean(seeded) without return types