code: def create_completion(prompt, grammar):
      headers = {"Content-Type": "application/json"}
      data = {"prompt": prompt, "grammar": grammar}
  
      response = requests.post(
          "http://127.0.0.1:8080/completion", headers=headers, json=data
      )
      data = response.json()
  
      print(data["content"])
      return data["content"]
  
imports: import datetime
  import json
  from enum import Enum
  from typing import Union, Optional
  import requests
  from pydantic import BaseModel, Field
  import importlib
  from pydantic_models_to_grammar import generate_gbnf_grammar_and_documentation, convert_dictionary_to_pydantic_model, add_run_method_to_dynamic_model, create_dynamic_model_from_function
label_desc: Use image node_id 1 for calling a global function with example usage: create_completion(prompt, grammar) and returns: data