code: def get_dates(nlp_doc):
      return list(
          map(
              lambda tok: tok.text,
              filter(lambda tok: tok.label_ == "DATE", nlp_doc.ents),
          )
      )
  
file_path: responsible-ai-toolbox/nlp_feature_extractors/nlp_feature_extractors/attribute_extractors.py
imports: import pkg_resources
  from negspacy.negation import Negex
  from raiutils.dataset import fetch_dataset
label_desc: Use image node_id 4 for calling a global function with example usage: get_dates(nlp_doc) and returns: list