code: def _format_doc(**kwargs):
      def decorator(obj):
          obj.__doc__ = obj.__doc__.format(**kwargs)
          return obj
  
      return decorator
  
imports: from dataclasses import dataclass
  from pathlib import Path
  from typing import BinaryIO, Dict, Optional, Union
  import torch
  import torio
label_desc: Use image node_id 2 for calling a global function with example usage: _format_doc() and returns: decorator, obj