code: def is_date(txt):
      fmts = (
          "%Y-%m-%d",
          "%d/%m/%Y",
          "%d-%b-%Y",
          "%d/%b/%Y",
          "%b/%d/%Y",
          "%m/%d/%Y",
          "%b-%d-%Y",
          "%m-%d-%Y",
          "%Y/%m/%d",
          "%m/%d/%y",
          "%d/%m/%y",
          "%Y-%b-%d",
          "%Y-%B-%d",
          "%d-%m-%y",
          "%a, %d %b %Y",
          "%a, %d %b %y",
          "%d %b %Y",
          "%d %b %y",
          "%a, %d/%b/%y",
          "%d-%b-%y",
          "%m-%d-%y",
          "%d-%m-%Y",
          "%b%d%Y",
          "%d%b%Y",
          "%Y",
          "%b %d, %Y",
          "%B %d, %Y",
          "%B %d %Y",
          "%b %Y",
          "%B%Y",
          "%b %d,%Y",
      )
      parsed = None
      for fmt in fmts:
          try:
              t = dt.datetime.strptime(txt, fmt)
              Year = t.year
              if Year > 2040 or Year < 1900:
                  pass
              else:
                  parsed = fmt
                  return fmt
                  break
          except ValueError as err:
              pass
      return parsed
  
imports: from typing import List
  import numpy
  import pandas
  import copy
  import pdb
  from sklearn.model_selection import TimeSeriesSplit
  import dask
  import dask.dataframe
  import datetime
  from datetime import datetime, date, time
label_desc: Use image node_id 10 for calling a global function with example usage: is_date(txt) and returns: parsed, fmt