code: def test_image_classification():
      dummy_image = np.random.randn(224, 224, 3)
      preprocess_conf = {"rescale": True, "expand_dims": True}
      postprocess_conf = {"thresh": 0.5}
  
      app = GradioApp(
          const.IMAGE_CLF,
          model=dummy_model,
          preprocess_fn=preprocess_fn,
          preprocess_conf=preprocess_conf,
          postprocess_fn=postprocess_fn,
          postprocess_conf=postprocess_conf,
      )
  
      assert app.single_x_classification(dummy_image) in (0, 1)
  
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 5 for calling a global function with example usage: test_image_classification() without return types