code: def _list(self, args: argparse.Namespace):
      gateways = self.api.client.gateways.list(self.api.project)
      print_gateways_table(
          gateways, verbose=getattr(args, "verbose", False)
      )
  
file_path: dstack/src/dstack/_internal/cli/commands/gateway.py
imports: import argparse
  from dstack._internal.cli.commands import APIBaseCommand
  from dstack._internal.cli.utils.common import confirm_ask, console
  from dstack._internal.cli.utils.gateway import print_gateways_table
  from dstack._internal.core.models.backends.base import BackendType
label_desc: Use image node_id 3 for calling the GatewayCommand obj's underlying member method code with example usage: obj._list(args) without return types