code: def test_geodesic_fwd_intermediate__numpy(return_back_azimuth):
      geod = Geod(ellps="clrk66")
      point_count = 5
      lons = numpy.empty(point_count)
      lats = numpy.empty(point_count)
      azis = numpy.empty(point_count)
      true_az12 = -66.5305947876623
      dist = 4164192.7080994663
      del_s = dist / (point_count - 1)
      with pytest.warns(
          UserWarning
      ) if return_back_azimuth is None else nullcontext():
          res = geod.fwd_intermediate(
              out_lons=lons,
              out_lats=lats,
              out_azis=azis,
              lon1=_BOSTON_LON,
              lat1=_BOSTON_LAT,
              azi1=true_az12,
              npts=point_count,
              del_s=del_s,
              initial_idx=0,
              terminus_idx=0,
              return_back_azimuth=return_back_azimuth,
          )
      assert res.npts == point_count
      assert res.lons is lons
      assert res.lats is lats
      assert res.azis is azis
      assert_almost_equal(res.del_s, del_s)
      assert_almost_equal(res.dist, dist)
      assert_almost_equal(
          res.lons,
          [
              -71.11666667,
              -83.34061499,
              -96.62666098,
              -110.34292364,
              -123.68333333,
          ],
      )
      assert_almost_equal(
          res.lats,
          [42.25, 45.35049848, 47.01597626, 47.07350417, 45.51666667],
      )
      if return_back_azimuth in [True, None]:
          azis = reverse_azimuth(azis)
      assert_almost_equal(
          azis,
          [
              -66.53059479,
              -75.01125433,
              -84.6195982,
              -94.68069764,
              -104.34636584,
          ],
      )
  
imports: import math
  import pickle
  from contextlib import nullcontext
  from itertools import permutations
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from pyproj import Geod
  from pyproj.geod import GeodIntermediateFlag, reverse_azimuth
label_desc: Use image node_id 7 for calling a global function with example usage: test_geodesic_fwd_intermediate__numpy(return_back_azimuth) without return types