code: def test_cannot_offline_non_runs(self, environment, container_type):
      with pytest.raises(NeptuneException) as e:
          initialize_container(
              container_type=container_type,
              project=environment.project,
              mode="offline",
          )
      assert "can't be initialized in OFFLINE mode" in str(e.value)
  
imports: import json
  import os
  import re
  from pathlib import Path
  import pytest
  from click.testing import CliRunner
  import neptune
  from neptune.cli import sync
  from neptune.cli.commands import clear
  from neptune.common.exceptions import NeptuneException
  from neptune.types import File
  from tests.e2e.base import AVAILABLE_CONTAINERS, BaseE2ETest, fake
  from tests.e2e.utils import DISABLE_SYSLOG_KWARGS, initialize_container, reinitialize_container, tmp_context
label_desc: Use image node_id 7 for calling the TestSync obj's underlying member method code with example usage: obj.test_cannot_offline_non_runs(environment, container_type) without return types