code: def str2date(dat: str) -> datetime.date:
      return datetime.datetime.strptime(dat, "%Y-%m-%d").date()
  
file_path: FinRL/finrl/meta/data_processors/func.py
imports: from __future__ import annotations
  import copy
  import datetime
  import os
  from datetime import date
  from datetime import timedelta
  from typing import List
  from typing import Tuple
  import numpy
  import pandas
label_desc: Use image node_id 6 for calling a global function with example usage: str2date(dat) and returns: datetime