code: 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
  
imports: from __future__ import absolute_import
  from collections import defaultdict, Counter
  from itertools import chain
  from typing import List, Iterable, Any, Dict, Tuple, Union
  import numpy
  import six
  from sklearn.base import BaseEstimator, TransformerMixin
  from sklearn.feature_extraction.text import HashingVectorizer, FeatureHasher
  from sklearn.pipeline import FeatureUnion
  from eli5._feature_names import FeatureNames
label_desc: Use image node_id 2 for calling a global function with example usage: _get_indices_and_signs(hasher, terms) and returns: indices,  signs