code: def pretty_format(self) -> str:
      if not self.gpus:
          return pretty_resources(
              cpus=self.cpus,
              memory=self.memory_mib,
              disk_size=self.disk.size_mib,
          )
      return pretty_resources(
          cpus=self.cpus,
          memory=self.memory_mib,
          gpu_count=len(self.gpus),
          gpu_name=self.gpus[0].name,
          gpu_memory=self.gpus[0].memory_mib,
          disk_size=self.disk.size_mib,
      )
  
imports: from enum import Enum
  from typing import List, Optional
  from pydantic import BaseModel
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.utils.common import pretty_resources
label_desc: Use image node_id 1 for calling the Resources obj's underlying member method code with example usage: obj.pretty_format() and returns: pretty_resources, pretty_resources