code: def test_list_models_filters(include_filters, exclude_filters):
      actual = set(
          models.list_models(
              models, include=include_filters, exclude=exclude_filters
          )
      )
      classification_models = set(get_models_from_module(models))
  
      if isinstance(include_filters, str):
          include_filters = [include_filters]
      if isinstance(exclude_filters, str):
          exclude_filters = [exclude_filters]
  
      if include_filters:
          expected = set()
          for include_f in include_filters:
              include_f = include_f.strip("*?")
              expected = expected | set(
                  x for x in classification_models if include_f in x
              )
      else:
          expected = classification_models
  
      if exclude_filters:
          for exclude_f in exclude_filters:
              exclude_f = exclude_f.strip("*?")
              if exclude_f != "":
                  a_exclude = set(
                      x for x in classification_models if exclude_f in x
                  )
                  expected = expected - a_exclude
  
      assert expected == actual
  
imports: import copy
  import os
  import pickle
  import pytest
  import test_models
  import torch
  from common_extended_utils import get_file_size_mb, get_ops
  from torchvision import models
  from torchvision.models import get_model_weights, Weights, WeightsEnum
  from torchvision.models._utils import handle_legacy_interface
  from torchvision.models.detection.backbone_utils import mobilenet_backbone, resnet_fpn_backbone
label_desc: Use image node_id 8 for calling a global function with example usage: test_list_models_filters(include_filters, exclude_filters) without return types