code: def test_mbnmf_inverse_transform():
      # Test that MiniBatchNMF.transform followed by MiniBatchNMF.inverse_transform
      # is close to the identity
      rng = np.random.RandomState(0)
      A = np.abs(rng.randn(6, 4))
      nmf = MiniBatchNMF(
          random_state=rng,
          max_iter=500,
          init="nndsvdar",
          fresh_restarts=True,
      )
      ft = nmf.fit_transform(A)
      A_new = nmf.inverse_transform(ft)
      assert_allclose(A, A_new, rtol=1e-3, atol=1e-2)
  
imports: import re
  import sys
  import warnings
  from io import StringIO
  import numpy
  import pytest
  from scipy import linalg
  from sklearn.base import clone
  from sklearn.decomposition import NMF, MiniBatchNMF, non_negative_factorization
  from sklearn.decomposition import _nmf
  from sklearn.exceptions import ConvergenceWarning
  from sklearn.utils._testing import assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_array_equal, ignore_warnings
  from sklearn.utils.extmath import squared_norm
  from sklearn.utils.fixes import CSC_CONTAINERS, CSR_CONTAINERS
label_desc: Use image node_id 13 for calling a global function with example usage: test_mbnmf_inverse_transform() without return types