code: def test_disperse_charges_alt():
      # Create a random set of points
      num_points = 3
      init_pointset = random_uniform_on_sphere(
          n=num_points, coords="xyz"
      )
  
      # Compute the associated electrostatic potential
      init_pointset = init_pointset.reshape(init_pointset.shape[0] * 3)
      init_charges_potential = _get_forces_alt(init_pointset)
  
      # Disperse charges
      init_pointset = init_pointset.reshape(3, 3)
      dispersed_pointset = disperse_charges_alt(init_pointset, 10)
  
      # Compute the associated electrostatic potential
      dispersed_pointset = dispersed_pointset.reshape(
          init_pointset.shape[0] * 3
      )
      dispersed_charges_potential = _get_forces_alt(dispersed_pointset)
  
      # Verify that the potential of the optimal configuration is smaller than
      # that of the original configuration
      nt.assert_array_less(
          dispersed_charges_potential, init_charges_potential
      )
  
imports: import numpy
  import numpy.testing
  import pytest
  import warnings
  from dipy.core.sphere import Sphere, HemiSphere, unique_edges, unique_sets, faces_from_sphere_vertices, disperse_charges, fibonacci_sphere, disperse_charges_alt, _get_forces, _get_forces_alt, unit_octahedron, unit_icosahedron, hemi_icosahedron
  from dipy.core.geometry import cart2sphere, vector_norm
  from dipy.core.sphere_stats import random_uniform_on_sphere
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 21 for calling a global function with example usage: test_disperse_charges_alt() without return types