code: def test_print_torch_model(cls, capfd):
      # https://github.com/wandb/wandb/issues/2097
      pytest.importorskip("torch")
      import torch
  
      with capfd.disabled():
          r = cls("stdout", [lambda _: None])
          model = torch.nn.ModuleList(
              torch.nn.Conv2d(1, 1, 1, bias=False) for _ in range(1000)
          )
          start = time.time()
          print(model)
          end = time.time()
          t1 = end - start
          r.install()
          start = time.time()
          print(model)
          end = time.time()
          t2 = end - start
          overhead = t2 - t1
          assert overhead < 0.2
          r.uninstall()
  
imports: import os
  import re
  import sys
  import time
  import numpy
  import pytest
  import tqdm
  import wandb
label_desc: Use image node_id 10 for calling a global function with example usage: test_print_torch_model(cls, capfd) without return types