code: def as_dataset(self):
          
  
          on = self.on.dataset
  
          on.revision = self.on.revision
  
          name = Name(**self.name.dict)
  
          return Identity(name, on)
docs: Convert this identity to the identity of the corresponding
          dataset.