code: def edit(id_or_alias, entries):
      db = read_checkpoint_db()
      checkpoint = get_checkpoint(db, id_or_alias)
      if not checkpoint:
          click.echo(
              "Checkpoint '{}' not found in index.".format(id_or_alias)
          )
          return
  
      # Parse the entries to modify and apply them.
      entries = parse_entries(entries, editing=True)
      if entries is None:
          return
  
      apply_entries(checkpoint, entries)
  
      save_checkpoint_db(db)
  
      click.echo("Checkpoint edited successfully.")
  
imports: import click
  import json
  import os
  import shutil
  import six
  import requests
  import tarfile
  import tempfile
  import tensorflow
  import uuid
  from datetime import datetime
  from luminoth import __version__
  from luminoth.utils.config import get_config
  from luminoth.utils.homedir import get_luminoth_home
label_desc: Use image node_id 18 for calling a global function with example usage: edit(id_or_alias, entries) without return types