code: def transform_matrix_offset_center(matrix, x, y):
      o_x = float(x) / 2 - 0.5
      o_y = float(y) / 2 - 0.5
      offset_matrix = np.array([[1, 0, o_x], [0, 1, o_y], [0, 0, 1]])
      reset_matrix = np.array([[1, 0, -o_x], [0, 1, -o_y], [0, 0, 1]])
      transform_matrix = np.dot(
          np.dot(offset_matrix, matrix), reset_matrix
      )
      return transform_matrix
  
file_path: keras-preprocessing/keras_preprocessing/image/affine_transformations.py
imports: import numpy
  from .utils import array_to_img, img_to_array
label_desc: Use image node_id 10 for calling a global function with example usage: transform_matrix_offset_center(matrix, x, y) and returns: transform_matrix