code: def read_and_process_data(
      path: str, file: str, is_train: bool
  ) -> pd.DataFrame:
      df = pd.read_csv(os.path.join(path, file))
      df["essay_text"] = df["essay_id"].apply(
          lambda x: get_essay(x, path, is_train=is_train)
      )
      return df
  
imports: import os
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: read_and_process_data(path, file, is_train) and returns: df