code: def skip_load_checkpoint_after_model_creation(reason: str):
      """Skip loading checkpoint right after model initialization.
  
      Args:
          reason: The reason for skipping dynamic exporting test.
  
      Returns:
          A decorator for skipping dynamic exporting test.
      """
  
      def skip_dec(func):
          @functools.wraps(func)
          def wrapper(self, *args, **kwargs):
              if self.load_checkpoint_during_init:
                  raise unittest.SkipTest(
                      f"Skip loading checkpoint during model initialization for FX tests. {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 9 for calling a global function with example usage: skip_load_checkpoint_after_model_creation(reason) and returns: skip_dec, wrapper, func