code: def test_to_timedelta_via_apply(self):
      # GH 5458
      expected = Series([np.timedelta64(1, "s")])
      result = Series(["00:00:01"]).apply(to_timedelta)
      tm.assert_series_equal(result, expected)
  
      result = Series([to_timedelta("00:00:01")])
      tm.assert_series_equal(result, expected)
  
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 17 for calling the TestTimedeltas obj's underlying member method code with example usage: obj.test_to_timedelta_via_apply() without return types