code: def testclass_downloads(cls, refresh_cache, model_names=None):
      for model_info in cls.list_available_models():
          model = cls.from_pretrained(
              model_name=model_info.pretrained_model_name,
              refresh_cache=refresh_cache,
          )
          assert isinstance(model, cls)
      if model_names is not None:
          assert set(model_names) == set(
              [
                  m.pretrained_model_name
                  for m in cls.list_available_models()
              ]
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: testclass_downloads(cls, refresh_cache, model_names) without return types