code: def test_type(self):
      self.assertIsInstance(
          self.art_model,
          type(
              PyTorchRegressor(
                  model=self.pytorch_model,
                  loss=nn.modules.loss.MSELoss(),
                  input_shape=(10,),
                  optimizer=optim.Adam(
                      self.pytorch_model.parameters(), lr=0.01
                  ),
              )
          ),
      )
      with self.assertRaises(TypeError):
          PyTorchRegressor(
              model="model",
              loss=nn.modules.loss.MSELoss,
              input_shape=(10,),
              optimizer=optim.Adam(
                  self.pytorch_model.parameters(), lr=0.01
              ),
          )
  
file_path: adversarial-robustness-toolbox/tests/estimators/regression/test_pytorch_regression.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  import unittest
  import numpy
  from torch import nn, optim
  from art.estimators.regression.pytorch import PyTorchRegressor
  from tests.utils import TestBase, master_seed
label_desc: Use image node_id 2 for calling the TestPytorchRegressor obj's underlying member method code with example usage: obj.test_type() without return types