code: def test_map_to_timedelta():
      list_of_valid_strings = ["00:00:01", "00:00:02"]
      a = pd.to_timedelta(list_of_valid_strings)
      b = Series(list_of_valid_strings).map(pd.to_timedelta)
      tm.assert_series_equal(Series(a), b)
  
      list_of_strings = ["00:00:01", np.nan, pd.NaT, pd.NaT]
  
      a = pd.to_timedelta(list_of_strings)
      ser = Series(list_of_strings)
      b = ser.map(pd.to_timedelta)
      tm.assert_series_equal(Series(a), b)
  
imports: from collections import Counter, defaultdict
  from decimal import Decimal
  import math
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, Series, bdate_range, date_range, isna, timedelta_range
  import pandas._testing
label_desc: Use image node_id 46 for calling a global function with example usage: test_map_to_timedelta() without return types