def validate_monitor_tasks(dependencies, args):
<EOL>sup_configs = sorted(dependencies.keys())<EOL>try:<EOL><INDENT>logging.info("<STR_LIT>")<EOL>r = fapi.list_workspace_configs(args['<STR_LIT>'], args['<STR_LIT>'])<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL>space_configs = r.json()<EOL>space_configs = { c["<STR_LIT:name>"]: c for c in space_configs}<EOL>r = fapi.list_repository_methods()<EOL>fapi._check_response_code(r, <NUM_LIT:200>)<EOL>repo_methods = r.json()<EOL>repo_methods = {m['<STR_LIT>'] + '<STR_LIT:/>' + m['<STR_LIT:name>'] + '<STR_LIT::>' + str(m['<STR_LIT>'])<EOL>for m in repo_methods if m['<STR_LIT>'] == '<STR_LIT>'}<EOL>valid = True<EOL>for config in sup_configs:<EOL><INDENT>if config not in space_configs:<EOL><INDENT>logging.error("<STR_LIT>"<EOL>+ config + "<STR_LIT>" + args['<STR_LIT>'] + "<STR_LIT:/>"<EOL>+ args['<STR_LIT>'])<EOL>valid = False<EOL><DEDENT>else:<EOL><INDENT>m = space_configs[config]['<STR_LIT>']<EOL>ref_method = m['<STR_LIT>'] + "<STR_LIT:/>" + m['<STR_LIT>'] + "<STR_LIT::>" + str(m['<STR_LIT>'])<EOL>if ref_method not in repo_methods:<EOL><INDENT>logging.error(config+ "<STR_LIT>"<EOL>+ ref_method)<EOL>valid = False<EOL><DEDENT><DEDENT><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>logging.error("<STR_LIT>" + str(e))<EOL>raise<EOL>return False<EOL><DEDENT>return valid<EOL>
Validate that all entries in the supervisor are valid task configurations and
        that all permissions requirements are satisfied.