code: def test_unsupported_td64_unit_raises(unit):
      # GH 52806
      with pytest.raises(
          ValueError,
          match=f"Unit {unit} is not supported. "
          "Only unambiguous timedelta values durations are supported. "
          "Allowed units are 'W', 'D', 'h', 'm', 's', 'ms', 'us', 'ns'",
      ):
          Timedelta(np.timedelta64(1, unit))
  
file_path: pandas/pandas/tests/tslibs/test_timedeltas.py
imports: import re
  import numpy
  import pytest
  from pandas._libs.tslibs.timedeltas import array_to_timedelta64, delta_to_nanoseconds, ints_to_pytimedelta
  from pandas import Timedelta, offsets
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_unsupported_td64_unit_raises(unit) without return types