class_docstr: Determines the year value of a datetime.
  
  Examples:
      >>> from datetime import datetime
      >>> dates = [datetime(2019, 3, 1),
      ...          datetime(2048, 6, 17, 11, 10, 50),
      ...          datetime(1950, 11, 30, 19, 45, 15)]
      >>> year = Year()
      >>> year(dates).tolist()
      [2019, 2048, 1950]
code: def get_function(self):
      def year(vals):
          return vals.dt.year
  
      return year
  
imports: from woodwork.column_schema import ColumnSchema
  from woodwork.logical_types import Datetime, Ordinal
  from featuretools.primitives.base import TransformPrimitive
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 1 for calling the Year obj's underlying member method code with example usage: obj.get_function() and returns: year, vals