code: def to_identifier(self):
          
  
          return {
              'number': self.pk,
              'episodes': [
                  episode.to_dict()
                  for episode in self.episodes.values()
              ]
          }
docs: Return the season identifier which is compatible with requests that require season definitions.
  
          :return: Season identifier/definition
          :rtype: :class:`~python:dict`