def METHOD_NAME(nlp, name, pretrained_model_name_or_path: str):
    """Spacy Language factory for creating custom component."""
    return TransformersComponent(
        pretrained_model_name_or_path=pretrained_model_name_or_path
    )