class_docstr: Check functionality and edge cases of `report_results` helper interface.
class_docstr_tok: ["Check","functionality","and","edge","cases","of","`","report_results","`","helper","interface","."]
docstr: Check that a Warning will be raised at import time,
  if environmental is set but does not correspond to an existing file.
docstr_tok: ["Check","that","a","Warning","will","be","raised","at","import","time",",","if","environmental","is","set","but","does","not","correspond","to","an","existing","file","."]
code: def test_with_env_set_but_no_file_exists(
      self, monkeypatch, tmpdir, data
  ):
      """Check that a Warning will be raised at import time,
      if environmental is set but does not correspond to an existing file.
      """
      path = str(tmpdir.join("naedw.txt"))
      monkeypatch.setenv("ORION_RESULTS_PATH", path)
  
      with pytest.raises(RuntimeWarning) as exc:
          reload(cli)
  
      assert "existing file" in str(exc.value)
  
imports: import copy
  import json
  from importlib import reload
  import pytest
  import orion.client
  import orion.client.cli
  import orion.core
  from orion.algo.random import Random
  from orion.client import get_experiment
  from orion.client.experiment import ExperimentClient
  from orion.core.io.database.ephemeraldb import EphemeralDB
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils.exceptions import BranchingEvent, NoConfigurationError, RaceCondition, UnsupportedOperation
  from orion.storage.base import setup_storage
  from orion.storage.legacy import Legacy
  from orion.testing import OrionState
label_desc: Use image node_id 3 for calling the TestReportResults obj's underlying member method code with example usage: obj.test_with_env_set_but_no_file_exists(monkeypatch, tmpdir, data) without return types