code: def get_chembl_id(nlm_mesh):
      
      mesh_id = get_mesh_id(nlm_mesh)
      pcid = get_pcid(mesh_id)
      url_mesh2pcid = 'https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/' + \
                      'cid/%s/synonyms/JSON' % pcid
      r = requests.get(url_mesh2pcid)
      res = r.json()
      synonyms = res['InformationList']['Information'][0]['Synonym']
      chembl_id = [syn for syn in synonyms
                   if 'CHEMBL' in syn and 'SCHEMBL' not in syn][0]
      return chembl_id
docs: Get ChEMBL ID from NLM MESH
  
      Parameters
      ----------
      nlm_mesh : str
  
      Returns
      -------
      chembl_id : str