code: def _render_instance_and_resources(
      instance: Optional[InstanceType], verbose: bool
  ) -> List[str]:
      if not instance:
          return [""] if not verbose else ["", ""]
      rows = [] if not verbose else [instance.name]
      rows.append(instance.resources.pretty_format())
      return rows
  
file_path: dstack/src/dstack/_internal/cli/utils/run.py
imports: from typing import List, Optional
  from rich.table import Table
  from dstack._internal.cli.utils.common import console
  from dstack._internal.core.models.instances import InstanceAvailability, InstanceType, Resources
  from dstack._internal.core.models.runs import RunPlan
  from dstack._internal.utils.common import pretty_date
  from dstack.api import Run
label_desc: Use image node_id 3 for calling a global function with example usage: _render_instance_and_resources(instance, verbose) and returns: rows, unknown