code: def sample(
      self, prompts, temperature=0, max_new_tokens=50, top_p=0.99
  ):
      completions = []
      for p in prompts:
          response = openai.Completion.create(
              engine=self.engine,
              prompt=p,
              temperature=temperature,
              max_tokens=max_new_tokens,
              top_p=top_p,
              frequency_penalty=0,
              presence_penalty=0,
              stop=None,
              echo=False,
          )
          completions.append(response["choices"][0]["text"])
      return completions
  
file_path: interpret-text/python/interpret_text/generative/model_lib/openai_tooling.py
imports: import tiktoken
  import openai
  from tqdm import tqdm
  import time
  import torch
  import numpy
  from scipy.special import logsumexp, log_softmax
label_desc: Use image node_id 3 for calling the CompletionsOpenAI obj's underlying member method code with example usage: obj.sample(prompts, temperature, max_new_tokens, top_p) and returns: completions