code: def state_name(self):
          
          if self.state == 1:
              return 'New Issue'
  
          elif self.state == 2:
              return 'Shutdown in 1 week'
  
          elif self.state == 3:
              return 'Shutdown in 1 day'
  
          elif self.state == 4:
              return 'Pending Shutdown'
  
          elif self.state == 5:
              return 'Stopped, delete in 12 weeks'
  
          elif self.state == 6:
              return 'Instance deleted'
  
          else:
              raise ValueError('Invalid state: {}'.format(self.state))
docs: Get a human-readable value of the state
  
          Returns:
              str: Name of the current state