code: def test_iso8601_formatter(date_str: str, timespec: str, exp: str):
      # GH#53020
      ts = Timestamp(date_str)
      assert ts.isoformat(timespec=timespec) == exp
  
file_path: pandas/pandas/tests/tslibs/test_parse_iso8601.py
imports: from datetime import datetime
  import pytest
  from pandas._libs import tslib
  from pandas import Timestamp
label_desc: Use image node_id 5 for calling a global function with example usage: test_iso8601_formatter(date_str, timespec, exp) without return types