def METHOD_NAME() -> str:
    """
    Utility function to get the directory that a particular
    python run file is contained in, even when run from
    a different directory.
    Useful as configuration information for a task is generally
    kept within the same directory as the run script
    """
    if len(sys.argv) == 0:
        return os.getcwd()
    ran_file = sys.argv[0]
    return os.path.abspath(os.path.dirname(ran_file))