code: def test_unambiguous_timedelta_values(self, val, errors):
      # GH36666 Deprecate use of strings denoting units with 'M', 'Y', 'm' or 'y'
      # in pd.to_timedelta
      msg = "Units 'M', 'Y' and 'y' do not represent unambiguous timedelta"
      if errors:
          with pytest.raises(ValueError, match=msg):
              to_timedelta(val)
      else:
          # check it doesn't raise
          to_timedelta(val)
  
imports: from datetime import time, timedelta
  import numpy
  import pytest
  from pandas.compat import IS64
  from pandas.errors import OutOfBoundsTimedelta
  import pandas
  from pandas import Series, TimedeltaIndex, isna, to_timedelta
  import pandas._testing
  from pandas.core.arrays import TimedeltaArray
label_desc: Use image node_id 16 for calling the TestTimedeltas obj's underlying member method code with example usage: obj.test_unambiguous_timedelta_values(val, errors) without return types