code: def read_data_one_file(data_dir: str, fname: str) -> pd.DataFrame:
      """
      The file name format is {mode}_{commit_hash}_{date_time}.csv
      """
      mode, commit_hash, date_time = fname[:-4].split("_")
      df = pd.read_csv(os.path.join(data_dir, fname)).assign(
          mode=mode,
          commit_hash=commit_hash,
          datetime=pd.to_datetime(date_time),
          fname=fname,
      )
      # clean out '.ipynb' if it is present
      df["name"] = df["name"].apply(lambda x: x.replace(".ipynb", ""))
      return df
  
imports: import os
  import pandas
  import papermill
label_desc: Use image node_id 1 for calling a global function with example usage: read_data_one_file(data_dir, fname) and returns: df