code: def disposable(func: Callable) -> Callable:
      executed = False
  
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          nonlocal executed
          if not executed:
              executed = True
              return func(*args, **kwargs)
  
      return wrapper
  
file_path: colossalai/colossalai/utils/common.py
imports: import functools
  import os
  import random
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Callable
  import numpy
  import torch
label_desc: Use image node_id 4 for calling a global function with example usage: disposable(func) and returns: wrapper, func