code: def list_packages(args):
      pkgs = packages(args.all)
      formatted = [_format_pkg(pkg) for pkg in pkgs]
      filtered = [pkg for pkg in formatted if _filter_model(pkg, args)]
      cli.table(
          filtered, cols=["name", "version", "summary"], sort=["name"]
      )
  
file_path: guildai/guild/commands/packages_impl.py
imports: import logging
  import os
  import re
  from guild import cli
  from guild import namespace
  from guild import pip_util
  from guild import util
label_desc: Use image node_id 1 for calling a global function with example usage: list_packages(args) without return types