class_docstr: Raised when an instance has an invalid status.
code: def __str__(self):
      return (
          f"Instance {self.instance_id} with current status "
          f"{Instance.InstanceStatus.Name(self.cur_status)} "
          f"cannot be set to {Instance.InstanceStatus.Name(self.new_status)}"
      )
  
imports: import re
  from dataclasses import dataclass, field
  from enum import Enum
  from typing import Dict, List, Optional
  from ray.core.generated.instance_manager_pb2 import Instance
label_desc: Use image node_id 1 for calling the InvalidInstanceStatusError obj's underlying member method code with example usage: obj.__str__() and returns: str, self, str, Instance, str, Instance