code: def _create(self, args: argparse.Namespace):
      with console.status("Creating gateway..."):
          gateway = self.api.client.gateways.create(
              self.api.project,
              args.name,
              BackendType(args.backend),
              args.region,
          )
          if args.set_default:
              self.api.client.gateways.set_default(
                  self.api.project, gateway.name
              )
          if args.domain:
              self.api.client.gateways.set_wildcard_domain(
                  self.api.project, gateway.name, args.domain
              )
      gateway = self.api.client.gateways.get(
          self.api.project, gateway.name
      )
      print_gateways_table([gateway])
  
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 4 for calling the GatewayCommand obj's underlying member method code with example usage: obj._create(args) without return types