def METHOD_NAME(tool: str, ext: str):
    fmt = f"{tool}.dvc-{{now:%Y%m%d}}_{{now:%H%M%S}}.{ext}"
    def func(now: Optional["datetime"] = None) -> str:
        return fmt.format(now=now or datetime.now())
    return func