def METHOD_NAME(self):
    dates = numpy.array(['2018-01-01', '2019-01-01', '2020-01-01'],
                        dtype='datetime64[ns]')
    assert_equal(numpy.array(['2018', '2019', '2020'],
                             dtype='datetime64[Y]'),
                 calendar.year(dates))