docstr: Find the union of all compounds tested across one or more assays
      
docstr_tok: ["Find","the","union","of","all","compounds","tested","across","one","or","more","assays"]
code: def create_cid_list(self, assays_to_parse):
      """Find the union of all compounds tested across one or more assays"""
  
      assay_paths = list()
      cid_list = np.array(list(), dtype=np.int64)
      assay_no = 0
      for path, dirs, filenames in os.walk(sdf_dir):
          for dir in dirs:
              # Each directory holds a range of assay results
              joined_path = os.path.join(sdf_dir, dir)
              for path, dirs, filenames in os.walk(joined_path):
                  for filename in filenames:
                      assay_name = "PCBA-" + filename.replace(
                          ".csv", ""
                      )
                      if assay_name not in assays_to_parse:
                          continue
                      file_path = os.path.join(joined_path, filename)
                      df = pd.read_csv(
                          file_path,
                          usecols=[
                              "PUBCHEM_CID",
                              "PUBCHEM_ACTIVITY_OUTCOME",
                          ],
                      )
                      df = df.dropna()
                      df["PUBCHEM_CID"] = df["PUBCHEM_CID"].astype(
                          np.int64
                      )
                      assay_paths.append(file_path)
                      cid_list = np.append(
                          cid_list, df["PUBCHEM_CID"].as_matrix()
                      )
                      assay_no = assay_no + 1
                      if assay_no % 100 == 0:
                          print(
                              "Parsed: {0} of: {1}".format(
                                  assay_no, len(assays_to_parse)
                              )
                          )
  
      print("Convert to CID set")
      cid_set = np.unique(cid_list)
      return assay_paths, cid_set
  
file_path: deepchem/contrib/pubchem_dataset/create_assay_overview.py
imports: import pandas
  import os
  import pickle
  import array
  from bisect import bisect_left
  import gzip
  import time
  import shutil
  import deepchem
  import requests
  import argparse
  import numpy
label_desc: Use image node_id 2 for calling the PCBADatsetBuilder obj's underlying member method code with example usage: obj.create_cid_list(assays_to_parse) and returns: assay_paths,  cid_set