code: def test_lda_empty_docs(csr_container):
      """Test LDA on empty document (all-zero rows)."""
      Z = np.zeros((5, 4))
      for X in [Z, csr_container(Z)]:
          lda = LatentDirichletAllocation(max_iter=750).fit(X)
          assert_almost_equal(
              lda.components_.sum(axis=0),
              np.ones(lda.components_.shape[1]),
          )
  
imports: import sys
  from io import StringIO
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from scipy.linalg import block_diag
  from scipy.special import psi
  from sklearn.decomposition import LatentDirichletAllocation
  from sklearn.decomposition._online_lda_fast import _dirichlet_expectation_1d, _dirichlet_expectation_2d
  from sklearn.exceptions import NotFittedError
  from sklearn.utils._testing import assert_allclose, assert_almost_equal, assert_array_almost_equal, if_safe_multiprocessing_with_blas
  from sklearn.utils.fixes import CSR_CONTAINERS
label_desc: Use image node_id 19 for calling a global function with example usage: test_lda_empty_docs(csr_container) without return types