code: def load_confuse_matrix(confuse_dict_path):
      f = open(confuse_dict_path, "rb")
      data = pkl.load(f)
      f.close()
      number = data[:10]
      upper = data[10:36]
      lower = data[36:]
      end = np.ones((1, 62))
      pad = np.ones((63, 1))
      rearrange_data = np.concatenate(
          (end, number, lower, upper), axis=0
      )
      rearrange_data = np.concatenate((pad, rearrange_data), axis=1)
      rearrange_data = 1 / rearrange_data
      rearrange_data[rearrange_data == np.inf] = 1
      rearrange_data = paddle.to_tensor(rearrange_data)
  
      lower_alpha = "abcdefghijklmnopqrstuvwxyz"
      # upper_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
      for i in range(63):
          for j in range(63):
              if i != j and standard_alphebet[j] in lower_alpha:
                  rearrange_data[i][j] = max(
                      rearrange_data[i][j], rearrange_data[i][j + 26]
                  )
      rearrange_data = rearrange_data[:37, :37]
  
      return rearrange_data
  
file_path: PaddleOCR/ppocr/losses/text_focus_loss.py
imports: import paddle.nn
  import paddle
  import numpy
  import pickle
label_desc: Use image node_id 1 for calling a global function with example usage: load_confuse_matrix(confuse_dict_path) and returns: rearrange_data