code: def test_copy_with():
      class X:
          def __init__(self, value):
              self.value = value
  
      a = X(42)
      b = copy_with(a, value=99)
  
      assert a.value == 42
      assert b.value == 99
  
imports: import tempfile
  import tarfile
  from pathlib import Path
  from typing import Optional
  import pytest
  from gluonts.util import copy_with, will_extractall_into
label_desc: Use image node_id 1 for calling a global function with example usage: test_copy_with() without return types