class_docstr: Test st.help.
class_docstr_tok: ["Test","st.help","."]
docstr: When the docs are defined for the type on an object, but not
  the object, we expect the docs of the type. This is the case
  of ndarray generated as follow.
docstr_tok: ["When","the","docs","are","defined","for","the","type","on","an","object",",","but","not","the","object",",","we","expect","the","docs","of","the","type",".","This","is","the","case","of","ndarray","generated","as","follow","."]
code: def test_doc_defined_for_type(self):
      """When the docs are defined for the type on an object, but not
      the object, we expect the docs of the type. This is the case
      of ndarray generated as follow.
      """
  
      array = np.arange(1)
  
      with patch_varname_getter():
          st.help(array)
  
      ds = self.get_delta_from_queue().new_element.doc_string
      self.assertEqual("array", ds.name)
      self.assertEqual("array([0])", ds.value)
      self.assertEqual("ndarray", ds.type)
      self.assertTrue("ndarray" in ds.doc_string)
  
imports: import inspect
  import sys
  import unittest
  from unittest.mock import patch
  import numpy
  import pytest
  import streamlit
  from streamlit.elements.doc_string import _get_variable_name_from_code_str
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 11 for calling the StHelpTest obj's underlying member method code with example usage: obj.test_doc_defined_for_type() without return types