code: def fetch_published(self):
          
          pid_type = self['_deposit']['pid']['type']
          pid_value = self['_deposit']['pid']['value']
  
          resolver = Resolver(
              pid_type=pid_type, object_type='rec',
              getter=partial(self.published_record_class.get_record,
                             with_deleted=True)
          )
          return resolver.resolve(pid_value)
docs: Return a tuple with PID and published record.