docs: def deserialize_durable_record_to_durable_model(record, durable_model):
      """
      Utility function that will take a Dynamo event record and turn it into the proper Durable Dynamo object.
  
      This will properly deserialize the ugly Dynamo datatypes away.
      :param record:
      :param durable_model:
      :return:
      """
      # Was the item in question too big for SNS? If so, then we need to fetch the item from the current Dynamo table:
      if record.get(EVENT_TOO_BIG_FLAG):
          return get_full_durable_object(record['dynamodb']['Keys']['arn']['S'],
                                         record['dynamodb']['NewImage']['eventTime']['S'],
                                         durable_model)
  
      new_image = remove_global_dynamo_specific_fields(record['dynamodb']['NewImage'])
      data = {}
  
      for item, value in new_image.items():
          # This could end up as loss of precision
          data[item] = DESER.deserialize(value)
  
      return durable_model(**data)