code: def _copy_weights(v1, v2):
      # copy weights from layer1 to layer2
      v2.w = ivy.copy_array(v1.w)
      v2.b = ivy.copy_array(v1.b)
  
file_path: ivy/ivy_tests/test_ivy/test_stateful/test_sequential.py
imports: import itertools
  from hypothesis import strategies
  import ivy
  from ivy_tests.test_ivy import helpers
  from ivy_tests.test_ivy.helpers.testing_helpers import handle_method
label_desc: Use image node_id 1 for calling a global function with example usage: _copy_weights(v1, v2) without return types