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 call time,
  if function has already been called once.
docstr_tok: ["Check","that","a","Warning","will","be","raised","at","call","time",",","if","function","has","already","been","called","once","."]
code: def test_call_interface_twice(self, monkeypatch, data):
      """Check that a Warning will be raised at call time,
      if function has already been called once.
      """
      monkeypatch.delenv("ORION_RESULTS_PATH", raising=False)
      reloaded_client = reload(cli)
  
      reloaded_client.report_results(data)
      with pytest.raises(RuntimeWarning) as exc:
          reloaded_client.report_results(data)
  
      assert "already reported" in str(exc.value)
      assert reloaded_client.IS_ORION_ON is False
      assert reloaded_client.RESULTS_FILENAME is None
      assert reloaded_client._HAS_REPORTED_RESULTS is True
  
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 4 for calling the TestReportResults obj's underlying member method code with example usage: obj.test_call_interface_twice(monkeypatch, data) without return types