code: def test_nlg_fill_response_custom_with_list():
      response = {
          "custom": {
              "blocks": [
                  {"fields": [{"text": "*Departure date:*\n{test}"}]}
              ],
              "other": ["{test}"],
          }
      }
      t = TemplatedNaturalLanguageGenerator(responses=dict())
      result = t._fill_response(
          response=response, filled_slots={"test": 5}
      )
      assert result == {
          "custom": {
              "blocks": [
                  {"fields": [{"text": "*Departure date:*\n5"}]}
              ],
              "other": ["5"],
          }
      }
  
imports: import uuid
  from typing import Text, Any
  import jsonschema
  import pytest
  from sanic import Sanic, response
  from rasa.core.nlg.callback import CallbackNaturalLanguageGenerator
  from rasa.core.nlg.response import TemplatedNaturalLanguageGenerator
  from rasa.utils.endpoints import EndpointConfig, read_endpoint_config
  from rasa.core.agent import Agent
label_desc: Use image node_id 11 for calling a global function with example usage: test_nlg_fill_response_custom_with_list() without return types