code: def generate_id(length: int = 8) -> str:
      """Generate a random base-36 string of `length` digits."""
      # There are ~2.8T base-36 8-digit strings. If we generate 210k ids,
      # we'll have a ~1% chance of collision.
      alphabet = string.ascii_lowercase + string.digits
      return "".join(secrets.choice(alphabet) for _ in range(length))
  
label_desc: Use image node_id 1 for calling a global function with example usage: generate_id(length) and returns: str