code: def test_image_to_text_single():
      """Just make sure the image_to_text function doesn't crash."""
  
      class MockImageExplanation:
          """Fake explanation object."""
  
          def __init__(self, data, values, output_names):
              self.data = data
              self.values = values
              self.output_names = output_names
  
      test_image_height = 500
      test_image_width = 500
      test_word_length = 4
  
      test_data = np.ones((test_image_height, test_image_width, 3)) * 50
      test_values = np.random.rand(
          test_image_height, test_image_width, 3, test_word_length
      )
      test_output_names = np.array(
          [str(i) for i in range(test_word_length)]
      )
  
      shap_values_test = MockImageExplanation(
          test_data, test_values, test_output_names
      )
      shap.plots.image_to_text(shap_values_test)
  
imports: import matplotlib
  import numpy
  import shap
label_desc: Use image node_id 3 for calling a global function with example usage: test_image_to_text_single() without return types