code: def finished_statuses(cls) -> List["JobStatus"]:
      return [cls.TERMINATED, cls.ABORTED, cls.FAILED, cls.DONE]
  
imports: from datetime import datetime, timedelta
  from enum import Enum
  from typing import Dict, List, Optional, Tuple
  from pydantic import UUID4, BaseModel, Field
  from typing_extensions import Annotated
  from dstack._internal.core.models.backends.base import BackendType
  from dstack._internal.core.models.configurations import AnyRunConfiguration, RegistryAuth
  from dstack._internal.core.models.instances import InstanceOfferWithAvailability, InstanceType
  from dstack._internal.core.models.profiles import Profile
  from dstack._internal.core.models.repos import AnyRunRepoData
  from dstack._internal.utils import common
  from dstack._internal.utils.common import pretty_resources
label_desc: Use image node_id 1 for calling the JobStatus obj's underlying member method code with example usage: obj.finished_statuses(cls) and returns: list