code: def parents(self, as_resources=False):
  
  		'''
  		method to return hierarchical parents of this resource
  
  		Args:
  			as_resources (bool): if True, opens each as appropriate resource type instead of return URI only
  
  		Returns:
  			(list): list of resources
  		'''
  
  		parents = [o for s,p,o in self.rdf.graph.triples((None, self.rdf.prefixes.fedora.hasParent, None))]
  
  		# if as_resources, issue GET requests for children and return
  		if as_resources:
  			logger.debug('retrieving parent as resource')
  			parents = [ self.repo.get_resource(parent) for parent in parents ]
  
  		return parentf parents(self, as_resources=False):
  
  		'''
  		method to return hierarchical parents of this resource
  
  		Args:
  			as_resources (bool): if True, opens each as appropriate resource type instead of return URI only
  
  		Returns:
  			(list): list of resources
  		'''
  
  		parents = [o for s,p,o in self.rdf.graph.triples((None, self.rdf.prefixes.fedora.hasParent, None))]
  
  		# if as_resources, issue GET requests for children and return
  		if as_resources:
  			logger.debug('retrieving parent as resource')
  			parents = [ self.repo.get_resource(parent) for parent in parents ]
  
  		return parents
docs: method to return hierarchical parents of this resource
  
  		Args:
  			as_resources (bool): if True, opens each as appropriate resource type instead of return URI only
  
  		Returns:
  			(list): list of resources