code: def to_single_data(input):
      
      if (isinstance(input, (list, tuple)) and len(input) == 1):
          return input[0]
      else:
          assert isinstance(input, dict), input
          return input
docs: Convert an input to a single bcbio data/world object.
  
      Handles both single sample cases (CWL) and all sample cases (standard bcbio).