code: def get_current_datetime(output_format: Optional[str] = None):
      """
      Get the current date and time in the given format.
      Args:
           output_format: formatting string for the date and time, defaults to '%Y-%m-%d %H:%M:%S'
      """
      if output_format is None:
          output_format = "%Y-%m-%d %H:%M:%S"
      return datetime.datetime.now().strftime(output_format)
  
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 2 for calling a global function with example usage: get_current_datetime(output_format) and returns: datetime