code: def criterion_remapping(criterion):
      criterion_remapping_dict = {
          "gini": "Gini",
          "entropy": "Entropy",
          "log_loss": "Log Loss",
          "friedman_mse": "Friedman MSE",
          "squared_error": "Squared Error",
          "absolute_error": "Absolute Error",
          "poisson": "Poisson",
          "variance": "Variance",
      }
  
      return criterion_remapping_dict.get(criterion, criterion)
  
imports: import os
  import re
  import tempfile
  import warnings
  import xml.etree.cElementTree
  from pathlib import Path
  from sys import platform
  import graphviz
  import numpy
  import pandas
  from matplotlib import patches
  from numpy import ndarray
  from numbers import Number
  from typing import Tuple, Sequence
label_desc: Use image node_id 1 for calling a global function with example usage: criterion_remapping(criterion) and returns: criterion_remapping_dict