def METHOD_NAME(self, path):
    if isinstance(path, list):
        for item in path:
            self.METHOD_NAME(item)
        return
    if os.path.isdir(path):
        yaml_paths = glob.glob(os.path.join(path, "*.yaml"))
        subdirectories = glob.glob(os.path.join(path, "*/"))
        for yaml_path in yaml_paths:
            self.METHOD_NAME(yaml_path)
        for subdirectory in subdirectories:
            self.METHOD_NAME(subdirectory)
        return
    print("Migrating {}.".format(path))
    with open(path) as yaml_file:
        tests = yaml.safe_load(yaml_file)
    if isinstance(tests, CommentedSeq):
        migrated_tests = [self.convert_test(test) for test in tests]
    else:
        migrated_tests = self.convert_test(tests)
    with open(path, "w") as yaml_file:
        yaml.dump(migrated_tests, yaml_file)