@staticmethod
def _coerce_path(path: Union[(str, Path)]) -> Path:
    path = Path(path)
    if (path.suffix not in ['.yaml', '.yml']):
        raise ValueError(f'Path must point to a yaml file. You provided {str(path)}')
    return path
@staticmethod
def _coerce_path(path: Union[(str, Path)]) -> Path:
    path = Path(path)
    if (path.suffix not in ['.yaml', '.yml']):
        raise ValueError(f'Path must point to a yaml file. You provided {str(path)}')
    return path