code: def reckon(
      eng,
      matmap3d: bool,
      lat1: float,
      lon1: float,
      rng: float,
      az: float,
  ) -> tuple[float, float]:
      """Using Matlab Engine to do same thing as Pymap3d"""
  
      if matmap3d:
          return eng.matmap3d.vreckon(lat1, lon1, rng, az, nargout=2)
  
      return eng.reckon(
          "rh", lat1, lon1, rng, az, eng.wgs84Ellipsoid(), nargout=2
      )
  
imports: from __future__ import annotations
  import pytest
  from pytest import approx
  from pymap3d.lox import loxodrome_direct
label_desc: Use image node_id 1 for calling a global function with example usage: reckon(eng, matmap3d, lat1, lon1, rng, az) and returns: eng, eng