code: def test_types():
      np = pytest.importorskip("numpy")
      assert str2dt(t0) == t0  # passthrough
      assert str2dt("2014-04-06T08:00:00") == t0
      ti = [
          str2dt("2014-04-06T08:00:00"),
          str2dt("2014-04-06T08:01:02"),
      ]
      to = [t0, datetime(2014, 4, 6, 8, 1, 2)]
      assert (
          ti == to
      )  # even though ti is numpy array of datetime and to is list of datetime
  
      t1 = [t0, t0]
      assert (np.asarray(str2dt(t1)) == t0).all()
  
file_path: pymap3d/src/pymap3d/tests/test_time.py
imports: from datetime import datetime
  import pymap3d.sidereal
  import pytest
  from pymap3d.timeconv import str2dt
  from pytest import approx
label_desc: Use image node_id 2 for calling a global function with example usage: test_types() without return types