code: def create_duckling(
      default_model_storage: ModelStorage,
      default_execution_context: ExecutionContext,
  ) -> Callable[[Dict[Text, Any]], DucklingEntityExtractor]:
      def inner(config: Dict[Text, Any]) -> DucklingEntityExtractor:
          return DucklingEntityExtractor.create(
              config={
                  **DucklingEntityExtractor.get_default_config(),
                  "url": "http://localhost:8000",
                  **config,
              },
              model_storage=default_model_storage,
              execution_context=default_execution_context,
              resource=Resource("duckling"),
          )
  
      return inner
  
file_path: rasa/tests/nlu/extractors/test_duckling_entity_extractor.py
imports: from typing import Callable, Dict, Text, Any
  import pytest
  import responses
  from rasa.engine.graph import ExecutionContext
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.nlu.extractors.duckling_entity_extractor import DucklingEntityExtractor
  from rasa.shared.nlu.constants import TEXT
  from rasa.shared.nlu.training_data.message import Message
label_desc: Use image node_id 1 for calling a global function with example usage: create_duckling(default_model_storage, default_execution_context) and returns: inner, DucklingEntityExtractor