code: def gencrossentropy(px, py, pxpy, alpha=1, logbase=2, measure="T"):
      """
      Generalized cross-entropy measures.
  
      Parameters
      ----------
      px : array_like
          Discrete probability distribution of random variable X
      py : array_like
          Discrete probability distribution of random variable Y
      pxpy : 2d array_like, optional
          Joint probability distribution of X and Y.  If pxpy is None, X and Y
          are assumed to be independent.
      logbase : int or np.e, optional
          Default is 2 (bits)
      measure : str, optional
          The measure is the type of generalized cross-entropy desired. 'T' is
          the cross-entropy version of the Tsallis measure.  'CR' is Cressie-Read
          measure.
      """
  
file_path: statsmodels/statsmodels/sandbox/infotheo.py
imports: from statsmodels.compat.python import lzip, lmap
  from scipy import stats
  import numpy
  from matplotlib import pyplot
  from scipy.special import logsumexp
label_desc: Use image node_id 14 for calling a global function with example usage: gencrossentropy(px, py, pxpy, alpha, logbase, measure) without return types