code: def get_status_xml(self, command, suppress_errors=False):
          
          # Get XML structure via HTTP get
          res = requests.get("http://{host}:{port}{command}".format(
              host=self._host, port=self._receiver_port, command=command),
                             timeout=self.timeout)
          # Continue with XML processing only if HTTP status code = 200
          if res.status_code == 200:
              try:
                  # Return XML ElementTree
                  return ET.fromstring(res.text)
              except ET.ParseError as err:
                  if not suppress_errors:
                      _LOGGER.error(
                          "Host %s returned malformed XML for end point %s",
                          self._host, command)
                      _LOGGER.error(err)
                  raise ValueError
          else:
              if not suppress_errors:
                  _LOGGER.error((
                      "Host %s returned HTTP status code %s to GET request at "
                      "end point %s"), self._host, res.status_code, command)
              raise ValueError
docs: Get status XML via HTTP and return it as XML ElementTree.