code: def test_map_box_timestamps():
      # GH 2689, GH 2627
      ser = Series(date_range("1/1/2000", periods=10))
  
      def func(x):
          return (x.hour, x.day, x.month)
  
      # it works!
      DataFrame(ser).map(func)
  
imports: from datetime import datetime
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Series, Timestamp, date_range
  import pandas._testing
  from pandas.tseries.offsets import BDay
label_desc: Use image node_id 9 for calling a global function with example usage: test_map_box_timestamps() and returns: x,  x,  x