code: def stage_name(self):
          
          if 'stage_name' in self.data and self.data.stage_name:
              return self.data.get('stage_name')
          else:
              return self.stage.data.name
docs: Get stage name of current job instance.
  
          Because instantiating job instance could be performed in different ways and those return different results,
          we have to check where from to get name of the stage.
  
          :return: stage name.