code: def test_run(mock_gr, test_input, expected):
      mock_gr.Interface = MagicMock()
      app = GradioApp(const.IMAGE_CLF, model=dummy_model)
      app.run(gr_interface_conf=test_input)
  
      mock_gr.Interface.assert_called_with(
          fn=app.api_type_func[app.api_type],
          inputs=app.input_types,
          outputs=app.output_types,
          title=app.title,
          description=app.desc,
          **expected,
      )
  
file_path: chitra/tests/serve/test_app.py
imports: import unittest.mock
  from unittest.mock import MagicMock
  import numpy
  import pytest
  from chitra.serve import GradioApp
  from chitra.serve import constants
label_desc: Use image node_id 6 for calling a global function with example usage: test_run(mock_gr, test_input, expected) without return types