docstr: Test that the update_column_config function correctly updates a column's configuration.
docstr_tok: ["Test","that","the","update_column_config","function","correctly","updates","a","column","'s","configuration","."]
code: def test_update_column_config(self):
      """Test that the update_column_config function correctly updates a column's configuration."""
  
      # Create an initial column config mapping
      initial_column_config: ColumnConfigMapping = {
          "index": {"label": "Index", "width": "medium"},
          "col1": {"label": "Column 1", "width": "small"},
      }
  
      # Define the column and new column config to update
      column_to_update = "col1"
      new_column_config: ColumnConfig = {
          "width": "large",
          "disabled": True,
      }
  
      # Call the update_column_config method
      update_column_config(
          initial_column_config, column_to_update, new_column_config
      )
  
      # Check if the column config was updated correctly
      expected_column_config: ColumnConfig = {
          "label": "Column 1",
          "width": "large",
          "disabled": True,
      }
      self.assertEqual(
          initial_column_config[column_to_update],
          expected_column_config,
      )
  
      # Test updating a column that doesn't exist in the initial column config mapping
      column_to_update = "col2"
      new_column_config: ColumnConfig = {
          "label": "Column 2",
          "width": "medium",
      }
  
      # Call the update_column_config method
      update_column_config(
          initial_column_config, column_to_update, new_column_config
      )
  
      # Check if the new column config was added correctly
      self.assertEqual(
          initial_column_config[column_to_update], new_column_config
      )
  
imports: from __future__ import annotations
  import datetime
  import unittest
  from decimal import Decimal
  import numpy
  import pandas
  import pyarrow
  from parameterized import parameterized
  from streamlit.elements.lib.column_config_utils import _EDITING_COMPATIBILITY_MAPPING, INDEX_IDENTIFIER, ColumnConfigMapping, ColumnConfigMappingInput, ColumnDataKind, _convert_column_config_to_json, _determine_data_kind, _determine_data_kind_via_arrow, _determine_data_kind_via_inferred_type, _determine_data_kind_via_pandas_dtype, apply_data_specific_configs, determine_dataframe_schema, is_type_compatible, process_config_mapping, update_column_config
  from streamlit.elements.lib.column_types import ColumnConfig
  from streamlit.errors import StreamlitAPIException
  from streamlit.type_util import DataFormat
label_desc: Use image node_id 9 for calling the ColumnConfigUtilsTest obj's underlying member method code with example usage: obj.test_update_column_config() without return types