def get_feature_dimensions(parameters):
    """ Returns dimensions (`int`s) of all node features.
    """
    n_atom_types = len(parameters["atom_types"])
    n_formal_charge = len(parameters["formal_charge"])
    n_numh = int(
        not parameters["use_explicit_H"]
        and not parameters["ignore_H"]
    ) * len(parameters["imp_H"])
    n_chirality = int(parameters["use_chirality"]) * len(parameters["chirality"])

    return n_atom_types, n_formal_charge, n_numh, n_chirality