docstr: reconstruct the statement and params in terms
  of a target dialect, which for CompiledSQL is just DefaultDialect.
docstr_tok: ["reconstruct","the","statement","and","params","in","terms","of","a","target","dialect",",","which","for","CompiledSQL","is","just","DefaultDialect","."]
code: def _received_statement(self, execute_observed):
      """reconstruct the statement and params in terms
      of a target dialect, which for CompiledSQL is just DefaultDialect.
      """
  
      context = execute_observed.context
      compare_dialect = self._compile_dialect(execute_observed)
  
      # received_statement runs a full compile().  we should not need to
      # consider extracted_parameters; if we do this indicates some state
      # is being sent from a previous cached query, which some misbehaviors
      # in the ORM can cause, see #6881
      cache_key = None  # execute_observed.context.compiled.cache_key
      extracted_parameters = (
          None  # execute_observed.context.extracted_parameters
      )
  
      if "schema_translate_map" in context.execution_options:
          map_ = context.execution_options["schema_translate_map"]
      else:
          map_ = None
  
      if isinstance(execute_observed.clauseelement, BaseDDLElement):
          compiled = execute_observed.clauseelement.compile(
              dialect=compare_dialect,
              schema_translate_map=map_,
          )
      else:
          compiled = execute_observed.clauseelement.compile(
              cache_key=cache_key,
              dialect=compare_dialect,
              column_keys=context.compiled.column_keys,
              for_executemany=context.compiled.for_executemany,
              schema_translate_map=map_,
          )
      _received_statement = re.sub(r"[\n\t]", "", str(compiled))
      parameters = execute_observed.parameters
  
      if not parameters:
          _received_parameters = [
              compiled.construct_params(
                  extracted_parameters=extracted_parameters
              )
          ]
      else:
          _received_parameters = [
              compiled.construct_params(
                  m, extracted_parameters=extracted_parameters
              )
              for m in parameters
          ]
  
      return _received_statement, _received_parameters
  
imports: from __future__ import annotations
  import collections
  import contextlib
  import itertools
  import re
  from ..None import event
  from ..engine import url
  from ..engine.default import DefaultDialect
  from ..schema import BaseDDLElement
label_desc: Use image node_id 4 for calling the CompiledSQL obj's underlying member method code with example usage: obj._received_statement(execute_observed) and returns: _received_statement,  _received_parameters