code: def add_ref(self, ref, attr=None):
          
          self.session.add_ref(self, ref, attr)
          return self.fetch()
docs: Add reference to resource
  
          :param ref: reference to add
          :type ref: Resource
  
          :rtype: Resource