code: def expect_not_an_experiment(run: Run):
      if isinstance(run, Experiment):
          raise NeptuneLegacyIncompatibilityException()
  
file_path: neptune-client/src/neptune/integrations/utils.py
imports: from typing import Union
  from neptune import Run
  from neptune.common.experiments import LegacyExperiment
  from neptune.exceptions import NeptuneLegacyIncompatibilityException
  from neptune.handler import Handler
  from neptune.internal.utils import verify_type
  from neptune.internal.utils.paths import join_paths
label_desc: Use image node_id 1 for calling a global function with example usage: expect_not_an_experiment(run) without return types