class_docstr: Python class for ordered set.
  Code taken from https://github.com/buyalsky/ordered-hash-set/tree/5198b23e01faeac3f5398ab2c08cb013d14b3702.
docstr: Function to compute the union of self._set and other_set.
  
  :param other_set: The set to obtain union with. Can be a list, set or OrderedSet.
  :returns: New OrderedSet representing the set with elements from the OrderedSet object and other_set.
docstr_tok: ["Function","to","compute","the","union","of","self._set","and","other_set",".",":","param","other_set",":","The","set","to","obtain","union","with",".","Can","be","a","list",",","set","or","OrderedSet",".",":","returns",":","New","OrderedSet","representing","the","set","with","elements","from","the","OrderedSet","object","and","other_set","."]
code: def union(self, other_set):
      """
      Function to compute the union of self._set and other_set.
  
      :param other_set: The set to obtain union with. Can be a list, set or OrderedSet.
      :returns: New OrderedSet representing the set with elements from the OrderedSet object and other_set.
      """
      new_set = OrderedSet()
      for element in self._set:
          new_set.add(element)
      for element in other_set:
          new_set.add(element)
      return new_set
  
file_path: dowhy/dowhy/utils/ordered_set.py
label_desc: Use image node_id 5 for calling the OrderedSet obj's underlying member method code with example usage: obj.union(other_set) and returns: new_set