code: def assert_path_exists(*parts):
      # Hide this method from the pytest traceback on test failure.
      __tracebackhide__ = True
  
      path = os.path.join(*parts)
      assert os.path.exists(path), "expected {} to exist".format(path)
  
imports: import os
  import pytest
  import inspect
  import matplotlib
  from tests.rand import RandomVisualizer
  from unittest.mock import MagicMock, patch
  from tests.base import ACTUAL_IMAGES, BASELINE_IMAGES
  from tests.base import VisualTestCase, ImageComparison
  from yellowbrick.exceptions import ImageComparisonFailure
label_desc: Use image node_id 1 for calling a global function with example usage: assert_path_exists() without return types