in google_cloud_automlops/utils/utils.py [0:0]
def is_component_config(filepath: str) -> bool:
"""Checks to see if the given file is a component yaml.
Args:
filepath (str): Path to a yaml file.
Returns:
bool: Whether the given file is a component yaml.
"""
required_keys = ['name','inputs','implementation']
file_dict = read_yaml_file(filepath)
return all(key in file_dict.keys() for key in required_keys)