code: def test_RcParams_class():
      rc = mpl.RcParams(
          {
              "font.cursive": [
                  "Apple Chancery",
                  "Textile",
                  "Zapf Chancery",
                  "cursive",
              ],
              "font.family": "sans-serif",
              "font.weight": "normal",
              "font.size": 12,
          }
      )
  
      expected_repr = """
  RcParams({'font.cursive': ['Apple Chancery',
                             'Textile',
                             'Zapf Chancery',
                             'cursive'],
            'font.family': ['sans-serif'],
            'font.size': 12.0,
            'font.weight': 'normal'})""".lstrip()
  
      assert expected_repr == repr(rc)
  
      expected_str = """
  font.cursive: ['Apple Chancery', 'Textile', 'Zapf Chancery', 'cursive']
  font.family: ['sans-serif']
  font.size: 12.0
  font.weight: normal""".lstrip()
  
      assert expected_str == str(rc)
  
      # test the find_all functionality
      assert ["font.cursive", "font.size"] == sorted(
          rc.find_all("i[vz]")
      )
      assert ["font.family"] == list(rc.find_all("family"))
  
imports: import copy
  import os
  import subprocess
  import sys
  from unittest import mock
  from cycler import cycler, Cycler
  import pytest
  import matplotlib
  from matplotlib import _api, _c_internal_utils
  import matplotlib.pyplot
  import matplotlib.colors
  import numpy
  from matplotlib.rcsetup import validate_bool, validate_color, validate_colorlist, _validate_color_or_linecolor, validate_cycler, validate_float, validate_fontstretch, validate_fontweight, validate_hatch, validate_hist_bins, validate_int, validate_markevery, validate_stringlist, validate_sketch, _validate_linestyle, _listify_validator
label_desc: Use image node_id 2 for calling a global function with example usage: test_RcParams_class() without return types