code: def track2(
      eng,
      lat1: float,
      lon1: float,
      lat2: float,
      lon2: float,
      npts: int,
      deg: bool,
  ) -> tuple:
      """Using Matlab Engine to do same thing as Pymap3d"""
      d = "degrees" if deg else "radians"
  
      lats, lons = eng.track2(
          "gc",
          lat1,
          lon1,
          lat2,
          lon2,
          eng.wgs84Ellipsoid(),
          d,
          float(npts),
          nargout=2,
      )
      return np.array(lats).squeeze(), np.array(lons).squeeze()
  
imports: from __future__ import annotations
  import pytest
  from pytest import approx
  import pymap3d.vincenty
label_desc: Use image node_id 1 for calling a global function with example usage: track2(eng, lat1, lon1, lat2, lon2, npts, deg) and returns: np,  np