code: def predict(args):
      if args.use_tabular:
          predictor = TabularPredictor.load(args.model_dir)
      else:
          predictor = MultiModalPredictor.load(args.model_dir)
      test_prediction = predictor.predict(
          args.test_file, as_pandas=True
      )
      if args.exp_dir is None:
          args.exp_dir = "."
      test_prediction.to_csv(
          os.path.join(args.exp_dir, "test_prediction.csv")
      )
  
file_path: autogluon/examples/automm/text_prediction/run_text_prediction.py
imports: import os
  import json
  import argparse
  import numpy
  import random
  import pandas
  import copy
  from autogluon.multimodal import MultiModalPredictor
  from autogluon.tabular import TabularPredictor
  from autogluon.core.utils.loaders import load_pd
  from autogluon.tabular.configs.hyperparameter_configs import get_hyperparameter_config
label_desc: Use image node_id 3 for calling a global function with example usage: predict(args) without return types