code: def bform(X: Tensor, A: Optional[Tensor], Y: Tensor) -> Tensor:
      """Return bilinear form of matrices: :math:`X^T A Y`."""
      return matmul(transpose(X), matmul(A, Y))
  
file_path: pytorch/torch/_linalg_utils.py
imports: from typing import Optional, Tuple
  import torch
  from torch import Tensor
label_desc: Use image node_id 7 for calling a global function with example usage: bform(X, A, Y) and returns: matmul