code: def build_df(ytime, ystatus, mtime0, mtime, mstatus):
      df = pd.DataFrame(
          {
              "ytime": ytime,
              "ystatus": ystatus,
              "mtime": mtime,
              "mstatus": mstatus,
              "exp": exp,
          }
      )
      return df
  
file_path: statsmodels/examples/python/mediation_survival.py
imports: import pandas
  import numpy
  import statsmodels.api
  from statsmodels.stats.mediation import Mediation
label_desc: Use image node_id 3 for calling a global function with example usage: build_df(ytime, ystatus, mtime0, mtime, mstatus) and returns: df