code: def dates_from_str(dates):
      """
      Turns a sequence of date strings and returns a list of datetime.
  
      Parameters
      ----------
      dates : array_like
          A sequence of abbreviated dates as string. For instance,
          '1996m1' or '1996Q1'. The datetime dates are at the end of the
          period.
  
      Returns
      -------
      date_list : ndarray
          A list of datetime types.
      """
      return lmap(date_parser, dates)
  
file_path: statsmodels/statsmodels/tsa/base/datetools.py
imports: from statsmodels.compat.python import asstr, lmap, lrange, lzip
  import datetime
  import re
  import numpy
  from pandas import to_datetime
label_desc: Use image node_id 4 for calling a global function with example usage: dates_from_str(dates) and returns: lmap