code: def _display_recent_jobs(
      user: str,
      max_jobs: Optional[int] = None,
  ) -> None:
      """display recent jobs for given user"""
  
      # max_jobs here controls the maximum number of jobs to retrieve and display
      # across all experiment groups for the given user
      if max_jobs is None:
          max_jobs = _DEFAULT_STATUS_MAX_JOBS
  
      max_jobs = max(0, max_jobs)
  
      with session_scope(get_sql_engine()) as session:
          recent_jobs = (
              session.query(Job)
              .filter(Job.user == user)
              .order_by(Job.created.desc())
          )
  
          if max_jobs > 0:
              recent_jobs = recent_jobs.limit(max_jobs)
  
          recent_jobs = recent_jobs.all()
          recent_jobs.reverse()
  
          if len(recent_jobs) == 0:
              logging.info(f"No recent jobs found for user {user}.")
              return
  
          if max_jobs > 0:
              logging.info(
                  f"most recent {max_jobs} jobs for user {user}:\n"
              )
          else:
              logging.info(f"all jobs for user {user}:\n")
  
          _display_jobs_hierarchy(jobs=recent_jobs)
  
          return
  
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 5 for calling a global function with example usage: _display_recent_jobs(user, max_jobs) without return types