code: def test_from_params(self):
      link1 = links.Linear(
          self.in_size, self.out_size, nobias=self.nobias
      )
      link2 = links.Linear.from_params(
          link1.W, link1.b, nobias=self.nobias
      )
  
      assert link1.W.shape == link2.W.shape
      assert (link2.b is None) == self.nobias
      if not self.nobias:
          assert link2.b.shape == link1.b.shape
  
imports: import os
  import tempfile
  import unittest
  import numpy
  import chainer
  from chainer.backends import cuda
  from chainer import gradient_check
  from chainer import links
  from chainer.serializers import npz
  from chainer import testing
  from chainer.testing import attr
  from chainer.testing import condition
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling the TestLinearFromParams obj's underlying member method code with example usage: obj.test_from_params() without return types