code: def test_copy_from():
      shape = [2, 3, 4]
      src = nn.NdArray(shape)
      dst = nn.NdArray(shape)
      src.data = 0
      src.cast(dtype=np.uint8)
      dst.copy_from(src, use_current_context=False)
      assert dst.dtype == np.uint8
  
      from nnabla.ext_utils import get_extension_context
  
      with nn.context_scope(
          get_extension_context("cpu", dtype="float")
      ):
          dst.copy_from(src, use_current_context=True)
      assert dst.dtype == np.uint8
  
      src.zero()
      with nn.context_scope(
          get_extension_context("cpu", dtype="float")
      ):
          dst.copy_from(src, use_current_context=True)
      assert dst.dtype == np.float32
  
imports: import numpy
  import nnabla
  import pytest
  from nnabla.ext_utils import get_extension_context
  import nnabla.functions
label_desc: Use image node_id 2 for calling a global function with example usage: test_copy_from() without return types