code: def matrix(rows, cols):
      """Returns a shape representing a matrix.
  
      Args:
        rows: The number of rows in the matrix, which may be None if unknown.
        cols: The number of columns in the matrix, which may be None if unknown.
  
      Returns:
        A TensorShape representing a matrix of the given size.
      """
      return TensorShape([rows, cols])
  
imports: from .None import compat, dtypes
  from tensorboard.compat.proto import tensor_shape_pb2
label_desc: Use image node_id 6 for calling a global function with example usage: matrix(rows, cols) and returns: TensorShape