code: def _needs_preprocessing(result_cols, x, preprocessing):
      """
      Checks if preprocessing is needed depending on the preprocessing used.
      """
      mapping = get_preprocessing_mapping(x, preprocessing)
      cols_after_preprocessing = [
          x for list_c in mapping.values() for x in list_c
      ]
      for col in result_cols:
          if (
              col in cols_after_preprocessing
              and col not in mapping.keys()
          ):
              return True
      return False
  
file_path: shapash/shapash/backend/base_backend.py
imports: from abc import ABC, abstractmethod
  from typing import Any, List, Optional, Union
  import pandas
  import numpy
  from shapash.utils.check import check_model, check_contribution_object
  from shapash.utils.transform import adapt_contributions, get_preprocessing_mapping
  from shapash.utils.utils import choose_state
label_desc: Use image node_id 1 for calling a global function with example usage: _needs_preprocessing(result_cols, x, preprocessing) and returns: False, True