code: def extract_subset(self, subset, contract=True):
          
          return [n for n in self.nodes() if subset in self.subsets(n, contract=contract)]
docs: Return all nodes in a subset.
  
          We assume the oboInOwl encoding of subsets, and subset IDs are IRIs, or IR fragments