code: def test_track2_compare(deg):
      lat1, lon1 = 0.0, 80.0
      lat2, lon2 = 0.0, 81.0
      if not deg:
          lat1, lon1, lat2, lon2 = np.radians((lat1, lon1, lat2, lon2))
  
      eng = matlab_engine()
  
      if not has_mapping(eng):
          pytest.skip("Matlab Toolbox not found")
  
      lats, lons = pymap3d.vincenty.track2(
          lat1, lon1, lat2, lon2, npts=4, deg=deg
      )
  
      lats_m, lons_m = track2(
          eng, lat1, lon1, lat2, lon2, npts=4, deg=deg
      )
  
      assert lats == approx(lats_m)
      assert lons == approx(lons_m)
  
imports: from __future__ import annotations
  import pytest
  from pytest import approx
  import pymap3d.vincenty
label_desc: Use image node_id 2 for calling a global function with example usage: test_track2_compare(deg) without return types