docstr: Test getting the type name via _get_type_name
docstr_tok: ["Test","getting","the","type","name","via","_get_type_name"]
code: def test_get_type_name(self, obj: object, expected_type: str):
      """Test getting the type name via _get_type_name"""
      self.assertEqual(metrics_util._get_type_name(obj), expected_type)
  
imports: import contextlib
  import datetime
  import unittest
  from collections import Counter
  from typing import Any, Callable
  from unittest.mock import MagicMock, mock_open, patch
  import pandas
  from parameterized import parameterized
  import streamlit
  import streamlit.components.v1
  from streamlit.connections import SnowparkConnection, SQLConnection
  from streamlit.runtime import metrics_util
  from streamlit.runtime.caching import cache_data_api, cache_resource_api
  from streamlit.runtime.legacy_caching import caching
  from streamlit.runtime.scriptrunner import get_script_run_ctx, magic_funcs
  from streamlit.web.server import websocket_headers
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 2 for calling the PageTelemetryTest obj's underlying member method code with example usage: obj.test_get_type_name(obj, expected_type) without return types