def LoadConfigsFromFile(file_path):
 with open(file_path) as data:
  return {d['check_id']: d for d in yaml.safe_load_all(data)}

def LoadConfigsFromFile ( file_path ) : with open ( file_path ) as data : return { d [ 'check_id' ] : d for d in yaml . safe_load_all ( data ) }
loads check definitions from a file .