code: def has_matmap3d(eng) -> bool:
      cwd = Path(__file__).parent
      d = cwd.parents[3] / "matmap3d"
      print(f"Looking in {d} for matmap3d")
  
      if d.is_dir():
          eng.addpath(str(d), nargout=0)
          return True
  
      return False
  
file_path: pymap3d/src/pymap3d/tests/matlab_engine.py
imports: import functools
  from pathlib import Path
  from datetime import datetime
  import matlab.engine
label_desc: Use image node_id 3 for calling a global function with example usage: has_matmap3d(eng) and returns: False, True