code: def test_datetime_nan_mask():
      result = cut(
          date_range("20130102", periods=5),
          bins=date_range("20130101", periods=2),
      )
  
      mask = result.categories.isna()
      tm.assert_numpy_array_equal(mask, np.array([False]))
  
      mask = result.isna()
      tm.assert_numpy_array_equal(
          mask, np.array([False, True, True, True, True])
      )
  
imports: import numpy
  import pytest
  import pandas
  from pandas import Categorical, DataFrame, DatetimeIndex, Index, Interval, IntervalIndex, Series, TimedeltaIndex, Timestamp, cut, date_range, interval_range, isna, qcut, timedelta_range, to_datetime
  import pandas._testing
  from pandas.api.types import CategoricalDtype
  import pandas.core.reshape.tile
label_desc: Use image node_id 35 for calling a global function with example usage: test_datetime_nan_mask() without return types