docstr: Test that the model builds using a config using either model_params or
  model_name.
docstr_tok: ["Test","that","the","model","builds","using","a","config","using","either","model_params","or","model_name","."]
code: def test_build_model(self, config):
      """
      Test that the model builds using a config using either model_params or
      model_name.
      """
      if get_torch_version() < [1, 7] and (
          "regnet_z" in config["name"]
          or config.get("activation", "relu") == "silu"
      ):
          self.skipTest(
              "SiLU activation is only supported since PyTorch 1.7"
          )
      model = build_model(config)
      assert isinstance(model, RegNet)
  
imports: import copy
  import logging
  import unittest
  import torch
  import torch.nn
  from classy_vision.generic.util import get_torch_version
  from classy_vision.models import build_model, RegNet
  from parameterized import parameterized
label_desc: Use image node_id 1 for calling the TestRegNetModelBuild obj's underlying member method code with example usage: obj.test_build_model(config) without return types