code: def packages(all=False):
      installed = pip_util.get_installed()
      return [pkg for pkg in installed if all or _is_gpkg(pkg)]
  
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 2 for calling a global function with example usage: packages(all) and returns: unknown