class_docstr: Determines the most commonly repeated value.
  
  Description:
      Given a list of values, return the value with the
      highest number of occurences. If list is
      empty, return `NaN`.
  
  Examples:
      >>> mode = Mode()
      >>> mode(['red', 'blue', 'green', 'blue'])
      'blue'
code: def get_function(self, agg_type=Library.PANDAS):
      def pd_mode(s):
          return s.mode().get(0, np.nan)
  
      return pd_mode
  
imports: import numpy
  from woodwork.column_schema import ColumnSchema
  from featuretools.primitives.base.aggregation_primitive_base import AggregationPrimitive
  from featuretools.utils.gen_utils import Library
label_desc: Use image node_id 1 for calling the Mode obj's underlying member method code with example usage: obj.get_function(agg_type) and returns: pd_mode, s