code: def test_ecef():
      xyz = pm.geodetic2ecef(*lla0)
  
      assert xyz == approx(xyz0)
      x, y, z = pm.geodetic2ecef(*rlla0, deg=False)
      assert x == approx(xyz[0])
      assert y == approx(xyz[1])
      assert z == approx(xyz[2])
  
      with pytest.raises(ValueError):
          pm.geodetic2ecef(-100, lla0[1], lla0[2])
  
      assert pm.ecef2geodetic(*xyz) == approx(lla0)
      assert pm.ecef2geodetic(*xyz, deg=False) == approx(rlla0)
  
      assert pm.ecef2geodetic(
          (A - 1) / sqrt(2), (A - 1) / sqrt(2), 0
      ) == approx([0, 45, -1])
  
file_path: pymap3d/src/pymap3d/tests/test_geodetic.py
imports: from math import isnan, nan, radians, sqrt
  import pymap3d
  import pytest
  from pytest import approx
label_desc: Use image node_id 8 for calling a global function with example usage: test_ecef() without return types