code: def assert_exist_and_clean(filename, msg=None):
      if not msg:
          msg = f"File {filename} does not exist"
      assert filename.exists(), msg
      filename.unlink()
  
imports: import warnings
  from pathlib import Path
  import matplotlib.pyplot
  import pandas
  import pytest
  from plotnine import aes, facet_wrap, geom_point, geom_text, ggplot, ggsave, theme_xkcd
  from plotnine.data import mtcars
  from plotnine.exceptions import PlotnineError, PlotnineWarning
label_desc: Use image node_id 2 for calling a global function with example usage: assert_exist_and_clean(filename, msg) without return types