code: def test_geodesic_inv_intermediate__azis_flag(flag):
      geod = Geod(ellps="clrk66")
      point_count = 7
      res = geod.inv_intermediate(
          lon1=_BOSTON_LON,
          lat1=_BOSTON_LAT,
          lon2=_PORTLAND_LON,
          lat2=_PORTLAND_LAT,
          npts=point_count,
          initial_idx=0,
          terminus_idx=0,
          flags=flag,
          return_back_azimuth=False,
      )
      assert res.npts == point_count
      assert_almost_equal(res.del_s, 694032.1180165777)
      assert_almost_equal(res.dist, 4164192.7080994663)
      assert_almost_equal(
          res.lons,
          [
              _BOSTON_LON,
              -79.12667425528419,
              -87.67579185665936,
              -96.62666097960022,
              -105.7727853838606,
              -114.86985739838673,
              _PORTLAND_LON,
          ],
      )
      assert_almost_equal(
          res.lats,
          [
              _BOSTON_LAT,
              44.46434542986116,
              46.07643938331146,
              47.0159762562249,
              47.23724050253994,
              46.72890509939583,
              _PORTLAND_LAT,
          ],
      )
      if flag == GeodIntermediateFlag.AZIS_DISCARD:
          assert res.azis is None
      else:
          assert_almost_equal(
              res.azis,
              [
                  -66.5305947876623,
                  -72.03560255472611,
                  -78.11540731053181,
                  -84.61959820187617,
                  -91.32904268899453,
                  -97.98697931255812,
                  -104.34636584443031,
              ],
          )
  
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 3 for calling a global function with example usage: test_geodesic_inv_intermediate__azis_flag(flag) without return types