code: def matrix_from_angle(angle: float, axis: int):
      matrix = np.eye(3)
      if axis == 1:
          matrix[0, 0] = np.cos(angle)
          matrix[2, 2] = np.cos(angle)
          matrix[2, 0] = -np.sin(angle)
          matrix[0, 2] = np.sin(angle)
      return matrix
  
imports: import os
  import pickle
  import re
  import matplotlib.pyplot
  import numpy
  import tensorflow
  from tensorflow_graphics.projects.points_to_3Dobjects.utils import tf_utils
  from google3.pyglib import gfile
label_desc: Use image node_id 15 for calling a global function with example usage: matrix_from_angle(angle, axis) and returns: matrix