code: def _display_xgroup(
      xgroup: str,
      user: str,
      max_jobs: Optional[int] = None,
  ) -> None:
      """display information for given experiment group and user"""
  
      # max_jobs here controls how many jobs to display for each experiment in
      # the specified experiment group, by default we only display the most recent
      # job for each experiment
      if max_jobs is None:
          max_jobs = 1
  
      max_jobs = max(0, max_jobs)
  
      with session_scope(get_sql_engine()) as session:
          xg = (
              session.query(ExperimentGroup)
              .filter(ExperimentGroup.name == xgroup)
              .filter(ExperimentGroup.user == user)
              .first()
          )
  
          if xg is None:
              logging.info(f"xgroup {xgroup} not found")
              return
  
          container_specs = sorted(
              set([e.container_spec for e in xg.experiments]),
              key=lambda x: x.id,
          )
  
          logging.info(f"xgroup {xg.name}:")
          for cs in container_specs:
              logging.info(f"docker config {_container_spec_str(cs)}")
              for e in xg.experiments:
                  if e.container_spec.id != cs.id:
                      continue
                  logging.info(
                      f"  experiment id {e.id}: {_experiment_command_str(e)}"
                  )
                  if len(e.jobs) == 0:
                      logging.info(f"    no jobs found")
                  else:
                      for j in e.jobs[-max_jobs:]:
                          logging.info(f"    job {_job_str(j)}")
  
imports: import logging
  import os
  from typing import Any, Dict, Iterable, List, Optional
  from sqlalchemy import or_
  from sqlalchemy.orm import Session
  from caliban.docker.build import build_image
  from caliban.docker.push import push_uuid_tag
  from caliban.history.submit import submit_job_specs
  from caliban.history.types import ContainerSpec, Experiment, ExperimentGroup, Job, JobStatus, Platform
  from caliban.history.util import get_gke_job_name, get_sql_engine, replace_job_spec_image, session_scope, stop_job, update_job_status
  from caliban.platform.gke.util import credentials, user_verify
  from caliban.util import Package, current_user
label_desc: Use image node_id 6 for calling a global function with example usage: _display_xgroup(xgroup, user, max_jobs) without return types