code: def get_chebi_name_from_id_web(chebi_id):
      
      url_base = 'http://www.ebi.ac.uk/webservices/chebi/2.0/test/'
      url_fmt = url_base + 'getCompleteEntity?chebiId=%s'
      resp = requests.get(url_fmt % chebi_id)
      if resp.status_code != 200:
          logger.warning("Got bad code form CHEBI client: %s" % resp.status_code)
          return None
      tree = etree.fromstring(resp.content)
  
      # Get rid of the namespaces.
      # Credit: https://stackoverflow.com/questions/18159221/remove-namespace-and-prefix-from-xml-in-python-using-lxml
      for elem in tree.getiterator():
          if not hasattr(elem.tag, 'find'):
              continue  # (1)
          i = elem.tag.find('}')
          if i >= 0:
              elem.tag = elem.tag[i+1:]
      objectify.deannotate(tree, cleanup_namespaces=True)
  
      elem = tree.find('Body/getCompleteEntityResponse/return/chebiAsciiName')
      if elem is not None:
          return elem.text
      return None
docs: Return a ChEBI mame corresponding to a given ChEBI ID using a REST API.
  
      Parameters
      ----------
      chebi_id : str
          The ChEBI ID whose name is to be returned.
  
      Returns
      -------
      chebi_name : str
          The name corresponding to the given ChEBI ID. If the lookup
          fails, None is returned.