code: def lexicographers_mutual_information(cooccurrence):
      """Helper method to calculate the Lexicographers Mutual Information of
      a matrix of co-occurrences.
  
      Due to the bias of mutual information for low frequency items,
      lexicographers mutual information corrects the formula by
      multiplying it by the co-occurrence frequency.
  
      Args:
          cooccurrence (numpy.ndarray): The symmetric matrix of co-occurrences of items.
  
      Returns:
          numpy.ndarray: The matrix of lexicographers mutual information between any two items.
  
      """
  
      with np.errstate(invalid="ignore", divide="ignore"):
          result = cooccurrence * mutual_information(cooccurrence)
  
      return np.array(result)
  
file_path: recommenders/recommenders/utils/python_utils.py
imports: import logging
  import numpy
  from scipy import sparse
label_desc: Use image node_id 6 for calling a global function with example usage: lexicographers_mutual_information(cooccurrence) and returns: np