def ds_format(ds, input_format, output_format):
    return datetime.strptime(ds, input_format).strftime(output_format)
Takes an input string and outputs another string
dataset/ETHPy150Open airbnb/airflow/airflow/macros/__init__.py/ds_format