<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_indices_and_signs(hasher, terms):
 """ For each term from ``terms`` return its column index and sign, as assigned by FeatureHasher ``hasher``. """

    X = _transform_terms(hasher, terms)
    indices = X.nonzero()[1]
    signs = X.sum(axis=1).A.ravel()
    return indices, signs