code: def return_df_in_original_format(
      df, received_ID_col=False, received_single_time_series=True
  ):
      """Return dataframe in the original format.
  
      Parameters
      ----------
          df : pd.DataFrame
              df with data
          received_ID_col : bool
              whether the ID col was present
          received_single_time_series: bool
              wheter it is a single time series
      Returns
      -------
          pd.Dataframe
              original input format
      """
      new_df = df.copy(deep=True)
      if not received_ID_col and received_single_time_series:
          assert len(new_df["ID"].unique()) == 1
          new_df.drop("ID", axis=1, inplace=True)
          log.info("Returning df with no ID column")
      return new_df
  
imports: from __future__ import annotations
  import logging
  import math
  from collections import OrderedDict
  from dataclasses import dataclass
  from typing import TYPE_CHECKING, List, Optional, Tuple
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: return_df_in_original_format(df, received_ID_col, received_single_time_series) and returns: new_df