def METHOD_NAME(self, value, attr, data, **kwargs):
    # Get component info from component yaml file.
    data = super().METHOD_NAME(value, attr, data, **kwargs)
    component_dict = yaml.safe_load(data)
    source_path = self.context[BASE_PATH_CONTEXT_KEY] / value
    # Update base_path to parent path of component file.
    component_schema_context = deepcopy(self.context)
    component_schema_context[BASE_PATH_CONTEXT_KEY] = source_path.parent
    component = AnonymousCommandComponentSchema(context=component_schema_context).load(
        component_dict, unknown=INCLUDE
    )
    component._source_path = source_path
    component._source = ComponentSource.YAML_COMPONENT
    return component