code: def calc_quantiles_simulated_df(
      sim_df_func, quantiles=[0.25, 0.75], simulation_num=50, **params
  ):
      """Calculates quantiles corresponding to probs by simulating time series with specified parameters
      :param sim_df_func: callable
          a function which simulates a dataframe
      :param quantiles: List[float]
          list of probabilities to compute quantiles at
      :param simulation_num: int
          number of simulations to calculate quantiles
      :param: **params
          parameters of ``sim_df_func``
  
      :return: pd.DataFrame
          contains quantiles corresponding to probs computed at each time point
      """
  
      df = [sim_df_func(**params)["y"] for x in range(simulation_num)]
      df = pd.DataFrame(df)
      quantiles_df = np.transpose(df.quantile(quantiles, 0))
  
      return quantiles_df
  
imports: import datetime
  import numpy
  import pandas
  from greykite.common.testing_utils import generate_df_for_tests
label_desc: Use image node_id 3 for calling a global function with example usage: calc_quantiles_simulated_df(sim_df_func, quantiles, simulation_num) and returns: quantiles_df