code: def is_compression_experiment(exp_config=None, eid=None, cur=None):
      if exp_config is not None:
          return "compression" in exp_config
      elif eid is not None:
          ret = query_db(
              cur,
              "SELECT (json_extract(exp_config, '$.compression') IS NOT NULL) as is_compression_exp \
                              FROM experiment WHERE eid={eid} LIMIT 1;".format(
                  eid=eid
              ),
          )
          return bool(ret[0]["is_compression_exp"])
      else:
          raise ValueError(
              "Missing parameter for is_compression_experiment"
          )
  
imports: from flask import render_template, jsonify, request
  from flask_cors import CORS
  import connexion
  import click
  import logging
  import sys
  import sqlite3
  import os
  import os.path
  from six.moves.configparser import ConfigParser
  import json
  import signal
  import multiprocessing
  from aup.compression.utils import SERIALIZATION_SEPARATOR, run_non_automatic_experiment, verify_compression_config, adjust_compression_config
  from aup.setup import setup
  from aup.utils import get_default_username, set_default_keyvalue
  from ..ET.Connector.SQLiteConnector import SQLiteConnector
  from ..EE.Experiment import Experiment
  from ..aup import BasicConfig
  from aup.Proposer import get_proposer
  from threading import Lock
label_desc: Use image node_id 4 for calling a global function with example usage: is_compression_experiment(exp_config, eid, cur) and returns: unknown, bool