code: def load_from_xml(self, path):
          
          with open(os.path.expanduser(path), "r") as ifile:
              et = ElementTree.parse(ifile)
  
          root = et.getroot()
  
          all_objects = {}
          for child in root:
              obj_type = self.__getattribute__(child.tag)
              objects = [obj_type(obj) for obj in child]
              all_objects[child.tag] = JSSObjectList(self.factory, None, objects)
  
          return all_objects
docs: Load all objects from XML file and return as dict.
  
          The dict returned will have keys named the same as the
          JSSObject classes contained, and the values will be
          JSSObjectLists of all full objects of that class (for example,
          the equivalent of my_jss.Computer().retrieve_all()).
  
          This method can potentially take a very long time!
  
          Args:
              path: String file path to the file you wish to load from.
                  Path will have ~ expanded prior to opening.