old_contents: from frappe.query_builder.terms import ParameterizedValueWrapper, ParameterizedFunction
  import pypika
  
  pypika.terms.ValueWrapper = ParameterizedValueWrapper
  pypika.terms.Function = ParameterizedFunction
  
  from pypika import *
  from frappe.query_builder.utils import Column, DocType, get_query_builder, patch_query_execute, patch_query_aggregation
  
new_contents: import pypika.terms
  from pypika import *
  
  from frappe.query_builder.terms import ParameterizedFunction, ParameterizedValueWrapper
  from frappe.query_builder.utils import (
      Column,
      DocType,
      get_query_builder,
      patch_query_aggregation,
      patch_query_execute,
  )
  
  pypika.terms.ValueWrapper = ParameterizedValueWrapper
  pypika.terms.Function = ParameterizedFunction
  
  # * Overrides the field() method and replaces it with the a `PseudoColumn` 'field' for consistency
  pypika.queries.Selectable.__getattr__ = lambda table, x: Field(x, table=table)
  pypika.queries.Selectable.field = pypika.terms.PseudoColumn("field")
  
subject: replace the field method with a column