code: def create_experiments(
      session: Session,
      container_spec: ContainerSpec,
      script_args: List[str],
      experiment_config: ce.ExpConf,
      xgroup: Optional[str] = None,
  ) -> List[Experiment]:
      """create experiment instances
  
      Args:
      session: sqlalchemy session
      container_spec: container spec for the generated experiments
      script_args: these are extra arguments that will be passed to every job
        executed, in addition to the arguments created by expanding out the
        experiment config.
      experiment_config: dict of string to list, boolean, string or int. Any
        lists will trigger a cartesian product out with the rest of the config. A
        job will be submitted for every combination of parameters in the experiment
        config.
      xgroup: experiment group name for the generated experiments
      """
  
      xg = ExperimentGroup.get_or_create(session=session, name=xgroup)
      session.add(xg)  # this ensures that any new objects get persisted
  
      return [
          Experiment.get_or_create(
              xgroup=xg,
              container_spec=container_spec,
              args=script_args,
              kwargs=kwargs,
          )
          for kwargs in ce.expand_experiment_config(experiment_config)
      ]
  
imports: import os
  import sys
  from contextlib import contextmanager
  from copy import deepcopy
  from typing import Any, Dict, List, Optional
  from absl import logging
  from blessings import Terminal
  from googleapiclient import discovery
  from sqlalchemy import create_engine
  from sqlalchemy.engine.base import Engine
  from sqlalchemy.exc import OperationalError
  from sqlalchemy.orm import Session, sessionmaker
  import caliban.config.experiment
  import caliban.util.auth
  from caliban.history.types import ContainerSpec, Experiment, ExperimentGroup, Job, JobSpec, JobStatus, Platform, init_db
  from caliban.platform.cloud.types import JobStatus
  from caliban.platform.gke.cluster import Cluster
  from caliban.platform.gke.types import JobStatus
  from caliban.platform.gke.util import default_credentials
label_desc: Use image node_id 6 for calling a global function with example usage: create_experiments(session, container_spec, script_args, experiment_config, xgroup) and returns: unknown