def METHOD_NAME(dir_path, username):
    """
    Only restores xml submissions, media files are assumed to still be in
    storage and will be retrieved by the filename stored within the submission
    """
    num_instances = 0
    num_restored = 0
    for _dir_path, _dir_names, file_names in os.walk(dir_path):
        for file_name in file_names:
            # check if its a valid xml instance
            xml_instance_path = os.path.join(_dir_path, file_name)
            num_instances += 1
            num_restored += restore_backup_from_xml_file(xml_instance_path, username)
    return num_instances, num_restored