system: You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog is comprehensive for this dataset -- the answer is a (possibly small) subset of it.

OUTPUT FORMAT: Respond with a comma-separated list of CWE IDs in the form `CWE-N`, sorted in ascending numeric order, wrapped in a single \boxed{...}. Examples: `\boxed{CWE-79}` for one, `\boxed{CWE-22,CWE-79,CWE-327}` for three. Output the boxed answer ONLY -- no explanation, no other text.

user: ```python
"""
    Downloading QM9/ DECAGON data to args.path (set by default to be "./data/")
    command: python data_download QM9 DECAGON -p path
"""
import argparse
import os
import wget
import zipfile
import tarfile
from utils.file_utils import *


def download_decagon_data(dir_path='./data/'):
    """
    Step 0: Download Polypharmacy data
    wget http://snap.stanford.edu/decagon/bio-decagon-combo.tar.gz;
    tar -xvzf bio-decagon-combo.tar.gz;

    bio-decagon-combo.csv which has the form
    drug_CID, drug_CID, side_effect_id, side_effect_name
    ( == CIDXXXXX,CIDXXXX,CXXXX,side_effect_name).

    Step 1: Collect drug cid list in drug_raw_feat.idx.jsonl,
    which has the form:
        CIDXXXX : { "atoms": [
                        {"aid": x, "number": x, "x": x, "y": x}
                        ... ]
                    "bonds": [
                        {"aid1": x, "aid2": x, "order": x}
                        ... ]
                    }
    where
        atom.aid is the atom ID within the owning Compound (molecule)
        atom.number is the atomic number for this atom
        atom.x, atom.y are the coordinates

        bond.aid1, bond.aid2 are the begin and end atom of the bond
        bond.order is the (chemical) bond order
    For more details
        https://pubchempy.readthedocs.io/en/latest/api.html#pubchempy.Atom
    """
    prepare_data_dir(dir_path)

    import csv
    drug_idx = set()
    with open(dir_path + 'bio-decagon-combo.csv') as f:
        csv_rdr = csv.reader(f)
        for i, row in enumerate(csv_rdr):
            if i == 0:
                print('Header:', row)
            else:
                drug1, drug2, *_ = row
                drug_idx |= {drug1, drug2}
    print('Instance:', row)

    print('Unique drug count =', len(drug_idx))

    # # Step 2: Search on PubChem
    from tqdm import tqdm_notebook
    import pubchempy as pcp
    # Use int type cid to search with PubChemPy
    drugs = {cid: pcp.Compound.from_cid(int(cid.strip('CID')))
             for cid in tqdm_notebook(drug_idx)}

    # # Step 3: Write to file
    import json
    with open(dir_path + 'drug_raw_feat.idx.jsonl', 'w') as f:
        for cid, drug in drugs.items():
            drug = drug.to_dict(properties=['atoms', 'bonds'])
            f.write('{}\t{}\n'.format(cid, json.dumps(drug)))


def download_qm9_data(data_dir):
    """
        Downloading and extracting necessary data.
    """
    data_dir = os.path.join(data_dir, 'qm9')
    if os.path.exists(data_dir):
        print('Found QM9 dataset - SKIP!')
        return

    prepare_data_dir(data_dir)

    # Download data from figshare
    def download_figshare(file_name, file_ext, dir_path='./data/',
                          change_name=None):
        prepare_data_dir(dir_path)
        url = 'https://ndownloader.figshare.com/files/' + file_name
        wget.download(url, out=dir_path)
        file_path = os.path.join(dir_path, file_name)

        if file_ext == '.zip':
            zip_ref = zipfile.ZipFile(file_path, 'r')
            if change_name is not None:
                dir_path = os.path.join(dir_path, change_name)
            zip_ref.extractall(dir_path)
            zip_ref.close()
            os.remove(file_path)
        elif file_ext == '.tar.bz2':
            tar_ref = tarfile.open(file_path, 'r:bz2')
            if change_name is not None:
                dir_path = os.path.join(dir_path, change_name)
            tar_ref.extractall(dir_path)
            tar_ref.close()
            os.remove(file_path)
        elif change_name is not None:
            os.rename(file_path, os.path.join(dir_path, change_name))

    # README
    download_figshare('3195392', '.txt', data_dir, 'readme.txt')
    # atomref
    download_figshare('3195395', '.txt', data_dir, 'atomref.txt')
    # Validation
    download_figshare('3195401', '.txt', data_dir, 'validation.txt')
    # Uncharacterized
    download_figshare('3195404', '.txt', data_dir, 'uncharacterized.txt')
    # dsgdb9nsd.xyz.tar.bz2
    download_figshare('3195389', '.tar.bz2', data_dir, 'dsgdb9nsd')
    # dsC7O2H10nsd.xyz.tar.bz2
    download_figshare('3195398', '.tar.bz2', data_dir, 'dsC702H10nsd')


def main():
    parser = argparse.ArgumentParser(
        description='Download dataset for Graph Co-attention')
    parser.add_argument('datasets', metavar='D', type=str.lower,
                        nargs='+', choices=['qm9', 'decagon'],
                        help='Name of dataset to download [QM9,DECAGON]')

    # I/O
    parser.add_argument('-p', '--path', metavar='dir', type=str, nargs=1,
                        help="path to store the data (default ./data/)")

    args = parser.parse_args()

    # Check parameters
    if args.path is None:
        args.path = './data/'
    else:
        args.path = args.path[0]

    # Init folder
    prepare_data_dir(args.path)

    if 'qm9' in args.datasets:
        download_qm9_data(args.path)

    if 'decagon' in args.datasets:
        download_decagon_data(args.path)


if __name__ == "__main__":
    main()

```

Candidate CWE catalog (every CWE that appears anywhere in this dataset):
  - CWE-20: Improper Input Validation
  - CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  - CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  - CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  - CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  - CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  - CWE-94: Improper Control of Generation of Code ('Code Injection')
  - CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  - CWE-116: Improper Encoding or Escaping of Output
  - CWE-117: Improper Output Neutralization for Logs
  - CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  - CWE-209: Generation of Error Message Containing Sensitive Information
  - CWE-215: Insertion of Sensitive Information Into Debugging Code
  - CWE-295: Improper Certificate Validation
  - CWE-312: Cleartext Storage of Sensitive Information
  - CWE-326: Inadequate Encryption Strength
  - CWE-327: Use of a Broken or Risky Cryptographic Algorithm
  - CWE-377: Insecure Temporary File
  - CWE-502: Deserialization of Untrusted Data
  - CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
  - CWE-611: Improper Restriction of XML External Entity Reference
  - CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute
  - CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection')
  - CWE-730: OWASP Top Ten 2004 Category A9 - Denial of Service
  - CWE-732: Incorrect Permission Assignment for Critical Resource
  - CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')
  - CWE-918: Server-Side Request Forgery (SSRF)
  - CWE-943: Improper Neutralization of Special Elements in Data Query Logic
  - CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag
  - CWE-1333: Inefficient Regular Expression Complexity

List every distinct CWE from the catalog above that is actually present in this code.
Answer: CWE-22