code: def test_inplace_false_attach_config(simple_model):
      palettizer = DKMPalettizer(simple_model)
      prepared_model = palettizer.prepare()
  
      assert not hasattr(simple_model.conv1, "qconfig")
      assert not hasattr(simple_model.conv2, "qconfig")
      assert not hasattr(simple_model.fc1, "qconfig")
      assert not hasattr(simple_model.fc2, "qconfig")
      assert not hasattr(simple_model.fc3, "qconfig")
  
      _assert_changes_post_attach(
          prepared_model.conv2,
          DEFAULT_PALETTIZATION_SCHEME[type(simple_model.conv2)][
              "n_bits"
          ],
          DEFAULT_PALETTIZATION_SCHEME[type(simple_model.conv2)][
              "cluster_dim"
          ],
      )
      _assert_changes_post_attach(
          prepared_model.fc1,
          DEFAULT_PALETTIZATION_SCHEME[type(simple_model.fc1)][
              "n_bits"
          ],
          DEFAULT_PALETTIZATION_SCHEME[type(simple_model.fc1)][
              "cluster_dim"
          ],
      )
      _assert_changes_post_attach(
          prepared_model.fc2,
          DEFAULT_PALETTIZATION_SCHEME[type(simple_model.fc2)][
              "n_bits"
          ],
          DEFAULT_PALETTIZATION_SCHEME[type(simple_model.fc2)][
              "cluster_dim"
          ],
      )
  
imports: import copy
  import pytest
  import torch
  import torch.functional
  import torch.nn
  from coremltools.optimize.torch.palettization import DKMPalettizer, DKMPalettizerConfig
  from coremltools.optimize.torch.palettization.palettization_config import DEFAULT_PALETTIZATION_SCHEME
  from coremltools.test.optimize.torch.palettization.palettization_utils import _assert_changes_post_attach, _assert_changes_post_prepare
label_desc: Use image node_id 3 for calling a global function with example usage: test_inplace_false_attach_config(simple_model) without return types