code: def _sample_sphere(n, dim, seed=None):
      # Sample points uniformly at random from the hypersphere
      rng = np.random.RandomState(seed=seed)
      points = rng.randn(n, dim)
      points /= np.linalg.norm(points, axis=1, keepdims=True)
      return points
  
imports: import numpy
  import itertools
  from numpy.testing import assert_equal, assert_almost_equal, assert_array_equal, assert_array_almost_equal
  import pytest
  from pytest import raises
  from scipy.spatial import SphericalVoronoi, distance
  from scipy.optimize import linear_sum_assignment
  from scipy.constants import golden
  from scipy.special import gamma
label_desc: Use image node_id 8 for calling a global function with example usage: _sample_sphere(n, dim, seed) and returns: points