code: def test_get_information_content(
      vectorizer_and_dtm, lamb_and_children_idxs
  ):
      _, doc_term_matrix = vectorizer_and_dtm
      idx_lamb, idx_children = lamb_and_children_idxs
      ics = representations.get_information_content(doc_term_matrix)
      assert len(ics) == doc_term_matrix.shape[1]
      assert ((0.0 <= ics) & (ics <= 1.0)).all()
      assert ics.max() > ics.min()
      assert ics[idx_lamb] == pytest.approx(0.95443, rel=0.001)
      assert ics[idx_children] == pytest.approx(0.81127, rel=0.001)
  
imports: import pytest
  import numpy
  from scipy.sparse import coo_matrix
  from textacy import extract, representations
label_desc: Use image node_id 15 for calling a global function with example usage: test_get_information_content(vectorizer_and_dtm, lamb_and_children_idxs) without return types