code: def test_to_module_error_docs(self):
      def documented_fn():
          """Really great docs."""
  
      def undocumented_fn():
          pass
  
      cls = basic.to_module(documented_fn)
      documented = cls()
      self.assertEqual(documented.__doc__, "Really great docs.")
      self.assertEqual(
          documented.__call__.__doc__, "Really great docs."
      )
  
      cls = basic.to_module(undocumented_fn)
      undocumented = cls()
      self.assertEqual(
          undocumented.__doc__, "Module produced by `hk.to_module`."
      )
      self.assertIsNone(undocumented.__call__.__doc__)
  
imports: from absl.testing import absltest
  from absl.testing import parameterized
  from haiku._src import base
  from haiku._src import basic
  from haiku._src import test_utils
  from haiku._src import transform
  import jax
  from jax import random
  import jax.numpy
  import numpy
label_desc: Use image node_id 19 for calling the BasicTest obj's underlying member method code with example usage: obj.test_to_module_error_docs() without return types