code: def run_completion(
      sample: str, instruction: str, completion_fn: CompletionFn
  ) -> str:
      sys_prompt = instruction
      user_prompt = str(sample)
  
      messages = [
          {"role": "system", "content": sys_prompt},
          {"role": "user", "content": user_prompt},
      ]
  
      assert callable(
          completion_fn
      ), "completion_fn must be callable `CompletionFn`"
      response = completion_fn(messages)
      completions = response.get_completions()
      assert (
          len(completions) == 1
      ), f"expected exactly one completion, got {completions}"
      text = completions[0]
      return text
  
imports: import json
  from typing import Callable, Mapping, Union
  from evals.api import CompletionFn
  from .None import prompts
  from .None import reconstruction_metrics
label_desc: Use image node_id 1 for calling a global function with example usage: run_completion(sample, instruction, completion_fn) and returns: text