code: def test_nlg_fill_response_custom(slot_name: Text, slot_value: Any):
      response = {
          "custom": {
              "field": f"{{{slot_name}}}",
              "properties": {
                  "field_prefixed": f"prefix_{{{slot_name}}}"
              },
              "bool_field": True,
              "int_field:": 42,
              "empty_field": None,
          }
      }
      t = TemplatedNaturalLanguageGenerator(responses=dict())
      result = t._fill_response(
          response=response, filled_slots={slot_name: slot_value}
      )
  
      assert result == {
          "custom": {
              "field": str(slot_value),
              "properties": {"field_prefixed": f"prefix_{slot_value}"},
              "bool_field": True,
              "int_field:": 42,
              "empty_field": None,
          }
      }
  
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 10 for calling a global function with example usage: test_nlg_fill_response_custom(slot_name, slot_value) without return types