code: def update_lincs_small_molecules():
      
      url = 'http://lincs.hms.harvard.edu/db/sm/'
      sm_data = load_lincs_csv(url)
      sm_dict = {d['HMS LINCS ID']: d.copy() for d in sm_data}
      assert len(sm_dict) == len(sm_data), "We lost data."
      fname = os.path.join(path, 'lincs_small_molecules.json')
      with open(fname, 'w') as fh:
          json.dump(sm_dict, fh, indent=1)
docs: Load the csv of LINCS small molecule metadata into a dict.
  
      Produces a dict keyed by HMS LINCS small molecule ids, with the metadata
      contained in a dict of row values keyed by the column headers extracted
      from the csv.