code: def main() -> list:
      parent_dir = Path(path.realpath(__file__)).parent.parent
      inference = SentimentInference(
          parent_dir / "aspects.csv", parent_dir / "opinions.csv"
      )
  
      print(
          "\n"
          + "=" * 40
          + "\n"
          + "Running inference on examples from sample test set:\n"
      )
  
      docs = [
          "The food was very fresh and flavoursome the service was very attentive. Would go back"
          " to this restaurant if visiting London again.",
          "The food was wonderful and fresh, I really enjoyed it and will definitely go back. "
          "Staff were friendly.",
          "The ambiance is charming. Uncharacteristically, the service was DREADFUL. When we"
          " wanted to pay our bill at the end of the evening, our waitress was nowhere to be "
          "found...",
      ]
  
      sentiment_docs = []
  
      for doc_raw in docs:
          print("Raw Document: \n{}".format(doc_raw))
          sentiment_doc = inference.run(doc=doc_raw)
          sentiment_docs.append(sentiment_doc)
          print(
              "SentimentDocument: \n{}\n".format(sentiment_doc)
              + "=" * 40
              + "\n"
          )
      return sentiment_docs
  
imports: from os import path
  from pathlib import Path
  from nlp_architect.models.absa.inference.inference import SentimentInference
label_desc: Use image node_id 1 for calling a global function with example usage: main() and returns: sentiment_docs