def METHOD_NAME(cls,
         model_dir=None,  # type: Text
         model_metadata=None,  # type: Metadata
         cached_component=None,  # type: Optional[DucklingExtractor]
         **kwargs  # type: **Any
         ):
    # type: (...) -> DucklingExtractor
    if cached_component:
        duckling = cached_component.duckling
    else:
        language = model_metadata.get("language")
        duckling = cls.create_duckling_wrapper(language)
    component_config = model_metadata.for_component(cls.name)
    return cls(component_config, duckling)