code: def symmetric_theil_u_correlation(
      x: Union[List, np.ndarray, pd.Series],
      y: Union[List, np.ndarray, pd.Series],
  ) -> float:
      """
      Calculate the symmetric Theil's U correlation of y to x.
  
      Parameters
      ----------
      x: Union[List, np.ndarray, pd.Series]
          A sequence of a categorical variable values without nulls
      y: Union[List, np.ndarray, pd.Series]
          A sequence of a categorical variable values without nulls
  
      Returns
      -------
      float
          Representing the symmetric Theil U correlation between y and x
      """
      h_x = entropy(value_frequency(x))
      h_y = entropy(value_frequency(y))
      u_xy = theil_u_correlation(x, y)
      u_yx = theil_u_correlation(
          y, x
      )  # pylint: disable=arguments-out-of-order
      u_sym = (h_x * u_xy + h_y * u_yx) / (h_x + h_y)
      return u_sym
  
file_path: deepchecks/deepchecks/utils/correlation_methods.py
imports: import math
  from collections import Counter
  from typing import List, Union
  import numpy
  import pandas
  from scipy.stats import entropy
  from deepchecks.utils.distribution.preprocessing import value_frequency
label_desc: Use image node_id 3 for calling a global function with example usage: symmetric_theil_u_correlation(x, y) and returns: u_sym