code: def test_partial_functions(self):
      def greet(name, formatter):
          return formatter(f"Hello {name}!")
  
      greet_upper_case = partial(greet, formatter=capwords)
      demo = Interface(
          fn=greet_upper_case, inputs="text", outputs="text"
      )
      assert demo("abubakar") == "Hello Abubakar!"
  
imports: import io
  import sys
  import unittest.mock
  from contextlib import contextmanager
  from functools import partial
  from string import capwords
  import httpx
  import pytest
  import gradio
  from gradio.blocks import Blocks
  from gradio.components import Image, Textbox
  from gradio.interface import Interface, TabbedInterface, close_all, os
  from gradio.layouts import TabItem, Tabs
  from gradio.utils import assert_configs_are_equivalent_besides_ids
label_desc: Use image node_id 4 for calling the TestInterface obj's underlying member method code with example usage: obj.test_partial_functions() and returns: formatter