code: def test_with_string_optimizer_with_parameters_that_requires_no_grad(
      self,
  ):
      self.pytorch_network.bias.requires_grad = False
      model = Model(self.pytorch_network, "sgd", self.loss_function)
      expected = optim.SGD([self.pytorch_network.weight], lr=1e-2)
      self.assertOptimizerEquality(model.optimizer, expected)
  
file_path: poutyne/tests/framework/model/test_model_optimizer.py
imports: import unittest
  import torch
  import torch.nn
  import torch.optim
  from poutyne import Model
label_desc: Use image node_id 8 for calling the ModelOptimizerInstanciationTest obj's underlying member method code with example usage: obj.test_with_string_optimizer_with_parameters_that_requires_no_grad() without return types