code: def with_check_if_file_appears(filepath):
      """Checks if file will be present when leaving the block.
      File is removed if exists when entering the block."""
      _remove_file_if_exists(filepath)
  
      try:
          yield
      finally:
          assert os.path.exists(filepath)
          _remove_file_if_exists(filepath)
  
imports: import io
  import os
  import random
  import string
  import tempfile
  from contextlib import contextmanager
  from datetime import datetime
  from math import sqrt
  from time import perf_counter
  import numpy
  from attr import dataclass
  from PIL import Image
  from PIL.PngImagePlugin import PngImageFile
  import neptune
  from neptune.internal.container_type import ContainerType
  from tests.e2e.exceptions import MissingEnvironmentVariable
label_desc: Use image node_id 2 for calling a global function with example usage: with_check_if_file_appears(filepath) without return types