code: def get_nodes_with(self, obj):
          
          result = set()
  
          if nx.__version__[0] == "1":
              nodes = self.nodes_iter()
          else:
              nodes = self.nodes
  
          for node in nodes:
              if node[OBJ] == obj:
                  result.add(node)
          return result
docs: Return nodes with `obj`.