code: def _config_zero_init(config):
      configs_no_init = copy.deepcopy(config)
      for key in configs_no_init.__dict__.keys():
          if (
              "_range" in key
              or "_std" in key
              or "initializer_factor" in key
              or "layer_scale" in key
          ):
              setattr(configs_no_init, key, 1e-10)
      return configs_no_init
  
imports: import copy
  import inspect
  import unittest
  import numpy
  from tests.test_modeling_common import floats_tensor
  from transformers import OneFormerConfig, is_torch_available, is_vision_available
  from transformers.testing_utils import require_torch, require_torch_accelerator, require_torch_fp16, require_torch_multi_gpu, require_vision, slow, torch_device
  from transformers.utils import cached_property
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_common import ModelTesterMixin
  from ...test_pipeline_mixin import PipelineTesterMixin
label_desc: Use image node_id 1 for calling a global function with example usage: _config_zero_init(config) and returns: configs_no_init