code: def _array_to_similarity_mat(x):
      arr = x.reshape(1, -1)
      return np.pad(arr, [(arr.shape[1] - 1, 0), (0, 0)], "edge")
  
file_path: cuml/python/cuml/tests/test_label_encoder.py
imports: from cuml.common.exceptions import NotFittedError
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  from cuml.preprocessing.LabelEncoder import LabelEncoder
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 10 for calling a global function with example usage: _array_to_similarity_mat(x) and returns: np