code: def denormalize_entity(in_dict):
      """Converts standard dictionary to BlitzDB Document-compatible dictionary
  
      Parameters
      ----------
      in_dict : dict
          normal dictionary of values, output of to_dictionary function
  
      Returns
      -------
      dict
          BlitzDB Document-compatible dictionary of values
      """
      out_dict = in_dict.copy()
      if "id" in list(in_dict):
          out_dict["pk"] = in_dict["id"]
          del out_dict["id"]
      if "start_time" in list(in_dict):
          # if not a datetime object, throw error
          if in_dict["start_time"] and not isinstance(
              in_dict["start_time"], datetime
          ):
              raise IncorrectType()
          out_dict["start_time"] = (
              in_dict["start_time"].strftime("%Y-%m-%dT%H:%M:%S.%fZ")
              if in_dict["start_time"]
              else None
          )
      if "end_time" in list(in_dict):
          # if not a datetime object, throw error
          if in_dict["end_time"] and not isinstance(
              in_dict["end_time"], datetime
          ):
              raise IncorrectType()
          out_dict["end_time"] = (
              in_dict["end_time"].strftime("%Y-%m-%dT%H:%M:%S.%fZ")
              if in_dict["end_time"]
              else None
          )
      if "created_at" in list(in_dict):
          # if not a datetime object, throw error
          if not isinstance(in_dict["created_at"], datetime):
              raise IncorrectType()
          out_dict["created_at"] = in_dict["created_at"].strftime(
              "%Y-%m-%dT%H:%M:%S.%fZ"
          )
      if "updated_at" in list(in_dict):
          # if not a datetime object, throw error
          if not isinstance(in_dict["updated_at"], datetime):
              raise IncorrectType()
          out_dict["updated_at"] = in_dict["updated_at"].strftime(
              "%Y-%m-%dT%H:%M:%S.%fZ"
          )
      return out_dict
  
file_path: datmo/datmo/core/storage/driver/blitzdb_dal_driver.py
imports: from blitzdb import Document, queryset
  from datetime import datetime
  from datmo.core.util.exceptions import EntityNotFound, EntityCollectionNotFound, IncorrectType, InvalidArgumentType, RequiredArgumentMissing, MoreThanOneEntityFound
  from datmo.core.storage.driver import DALDriver
label_desc: Use image node_id 2 for calling a global function with example usage: denormalize_entity(in_dict) and returns: out_dict