code: def do_list_command(
      service: RemoteService, auth: Authentication, args
  ):
      header = render_header(args.show_model_groups)
      items = []
      for account in service.get_accounts(auth):
          # Filter by group
          if (
              args.group is not None
              and args.group not in account.groups
          ):
              continue
  
          items.append(render_account(account))
      print_table(header, items)
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/cli.py
imports: import argparse
  from typing import List, Dict
  import re
  import sys
  from helm.common.hierarchical_logger import hlog
  from helm.common.authentication import Authentication
  from .accounts import Usage, Account
  from .services.remote_service import RemoteService, add_service_args, create_remote_service, create_authentication
label_desc: Use image node_id 6 for calling a global function with example usage: do_list_command(service, auth, args) without return types