code: def skip_in_ci(reason: str):
      """Skip test in CI.
  
      Args:
          reason: The reason for skipping test in CI.
  
      Returns:
          A decorator for skipping test in CI.
      """
  
      def skip_dec(func):
          @functools.wraps(func)
          def wrapper(self, *args, **kwargs):
              if os.getenv("CI"):
                  raise unittest.SkipTest(f"Skip test in CI. {reason}")
              return func(self, *args, **kwargs)
  
          return wrapper
  
      return skip_dec
  
imports: from __future__ import annotations
  import functools
  import os
  import random
  import sys
  import unittest
  from enum import auto, Enum
  from typing import Optional
  import numpy
  import packaging.version
  import pytest
  import torch
  from torch.autograd import function
  from torch.onnx._internal import diagnostics
  from torch.testing._internal import common_utils
label_desc: Use image node_id 11 for calling a global function with example usage: skip_in_ci(reason) and returns: skip_dec, wrapper, func