code: def test_extract_from_dict(self):
      d = {"k1": "v1", "k2": "v2", "k3": "v3", "k4": "v4"}
  
      extracted = extract_from_dict(
          ["k1", "k2", "nonexistent_key"],
          d,
      )
  
      assert extracted == {"k1": "v1", "k2": "v2"}
      assert d == {"k3": "v3", "k4": "v4"}
  
file_path: streamlit/lib/tests/streamlit/connections/util_test.py
imports: import unittest
  from unittest.mock import MagicMock, mock_open, patch
  import pytest
  from streamlit.connections.util import extract_from_dict, load_from_snowsql_config_file, running_in_sis
label_desc: Use image node_id 1 for calling the ConnectionUtilTest obj's underlying member method code with example usage: obj.test_extract_from_dict() without return types