code: def date2str(dat: datetime.date) -> str:
      return datetime.date.strftime(dat, "%Y-%m-%d")
  
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 5 for calling a global function with example usage: date2str(dat) and returns: datetime