code: def test_repr_mimebundle_image_jpeg_mocked(mocker, dot):
      mock_pipe = mocker.patch.object(dot, "pipe", autospec=True)
  
      assert dot._repr_mimebundle_({"image/jpeg"}) == {
          "image/jpeg": mock_pipe.return_value
      }
  
      mock_pipe.assert_called_once_with(format="jpeg")
  
imports: import locale
  import pathlib
  import re
  import subprocess
  import pytest
  import graphviz
  import _common
label_desc: Use image node_id 23 for calling a global function with example usage: test_repr_mimebundle_image_jpeg_mocked(mocker, dot) without return types