def _update_globals(task_file_to_run, globals_dict):
    """Updates globals dictionary with default data path for provided
    task if Inputs/Outputs directories are equal to None.

    Args:
        task_file_to_run (str): path to the task that will be run. 
        globals_dict (dict): contains global variables for function to run.
    """
    default_data_path = "\\".join(
        [task_file_to_run.split("\\tasks\\")[0], "data"])
    for directory in ["INPUTS_DIRECTORY", "OUTPUTS_DIRECTORY"]:
        if globals_dict[directory] is None:
            globals_dict[directory] = default_data_path

    return globals_dict