class_docstr: Test cases for common functionality.
class_docstr_tok: ["Test","cases","for","common","functionality","."]
docstr: Checks setting configuartion with config manager works
docstr_tok: ["Checks","setting","configuartion","with","config","manager","works"]
code: def test_config(self) -> None:
      """Checks setting configuartion with config manager works"""
      # Set the config directly
      crypten.init()
  
      cfgs = [
          "functions.exp_iterations",
          "functions.max_method",
      ]
  
      for _cfg in cfgs:
          cfg[_cfg] = 10
          self.assertTrue(cfg[_cfg] == 10, "cfg.set failed")
  
          # Set with a context manager
          with cfg.temp_override({_cfg: 3}):
              self.assertTrue(
                  cfg[_cfg] == 3, "temp_override failed to set values"
              )
          self.assertTrue(
              cfg[_cfg] == 10, "temp_override values persist"
          )
  
file_path: CrypTen/test/test_common.py
imports: import sys
  import unittest
  import crypten
  import torch
  from crypten.common.util import chebyshev_series
  from crypten.config import cfg
  from crypten.encoder import FixedPointEncoder, nearest_integer_division
label_desc: Use image node_id 5 for calling the TestCommon obj's underlying member method code with example usage: obj.test_config() without return types