code: def test_nlg_fill_response_text_and_custom(
      text_slot_name, text_slot_value, cust_slot_name, cust_slot_value
  ):
      response = {
          "text": f"{{{text_slot_name}}}",
          "custom": {
              "field": f"{{{cust_slot_name}}}",
              "properties": {
                  "field_prefixed": f"prefix_{{{cust_slot_name}}}"
              },
          },
      }
      t = TemplatedNaturalLanguageGenerator(responses=dict())
      result = t._fill_response(
          response=response,
          filled_slots={
              text_slot_name: text_slot_value,
              cust_slot_name: cust_slot_value,
          },
      )
      assert result == {
          "text": str(text_slot_value),
          "custom": {
              "field": str(cust_slot_value),
              "properties": {
                  "field_prefixed": f"prefix_{cust_slot_value!s}"
              },
          },
      }
  
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 15 for calling a global function with example usage: test_nlg_fill_response_text_and_custom(text_slot_name, text_slot_value, cust_slot_name, cust_slot_value) without return types