code: def positional_deprecated(fn):
      """
      A decorator to nudge users into passing only keyword args (`kwargs`) to the
      wrapped function, `fn`.
      """
  
      @functools.wraps(fn)
      def _wrapper(*args, **kwargs):
          if len(args) != 1 if inspect.ismethod(fn) else 0:
              print(
                  f"WARNING: using {fn.__name__} with positional arguments is "
                  "deprecated and will be disallowed in a future version of "
                  "lm-evaluation-harness!"
              )
          return fn(*args, **kwargs)
  
      return _wrapper
  
imports: import os
  import pathlib
  import re
  import collections
  import functools
  import inspect
  import sys
  from typing import List, Union
  import torch
  from omegaconf import OmegaConf
  import sacrebleu
  from rouge_score import rouge_scorer, scoring
label_desc: Use image node_id 10 for calling a global function with example usage: positional_deprecated(fn) and returns: _wrapper, fn