code: def _remove_single(x):
      """Remove tuple wrapping from singleton.
  
      Parameters
      ----------
      x : tuple
  
      Returns
      -------
      x[0] if x is a singleton, otherwise x
      """
      if len(x) == 1:
          return x[0]
      else:
          return x
  
file_path: sktime/sktime/utils/_testing/_conditional_fixtures.py
imports: from copy import deepcopy
  from typing import Callable, Dict, List
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: _remove_single(x) and returns: x, x