code: def validate(df, column=None):
      if isinstance(df, pd.DataFrame):
          if column is not None:
              df = pd.DataFrame(df[column])
              _df = pd.DataFrame()
          elif len(df.columns) > 1:
              raise StudyError(
                  "DataFrame needs to be a single column \n"
                  "Or the column name needs to be specified"
              )
          else:
              df = df.copy()
              _df = pd.DataFrame()
              column = df.columns[0]
      else:
          df = pd.DataFrame(df)
          _df = pd.DataFrame()
          column = df.columns[0]
      return df, _df, column
  
imports: import pandas
  import numpy
  from plotly.graph_objs import Figure
  from .utils import make_list
label_desc: Use image node_id 3 for calling a global function with example usage: validate(df, column) and returns: df,  _df,  column