code: def test_nlg_fill_response_button(
      button_slot_name, button_slot_value
  ):
      response = {
          "buttons": [
              {
                  "payload": f'/choose{{{{"some_slot": "{{{button_slot_name}}}"}}}}',
                  "title": f"{{{button_slot_name}}}",
              }
          ]
      }
      t = TemplatedNaturalLanguageGenerator(responses=dict())
      result = t._fill_response(
          response=response,
          filled_slots={button_slot_name: button_slot_value},
      )
      assert result == {
          "buttons": [
              {
                  "payload": f'/choose{{"some_slot": "{button_slot_value}"}}',
                  "title": f"{button_slot_value}",
              }
          ]
      }
  
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 17 for calling a global function with example usage: test_nlg_fill_response_button(button_slot_name, button_slot_value) without return types