code: def maybe_skip(fn):
      if unet_2d is None:
          return unittest.skip("requires diffusers")(fn)
      return fn
  
file_path: pytorch/test/dynamo/test_base_output.py
imports: import unittest.mock
  import torch
  import torch._dynamo.test_case
  import torch._dynamo.testing
  from torch._dynamo.testing import same
label_desc: Use image node_id 1 for calling a global function with example usage: maybe_skip(fn) and returns: fn, unittest