code: def block_diagonal_to_dense(*matrices):
      """Given a sequence of matrices, creates a block-diagonal dense matrix."""
      operators = [
          tf.linalg.LinearOperatorFullMatrix(m) for m in matrices
      ]
      return tf.linalg.LinearOperatorBlockDiag(operators).to_dense()
  
file_path: tf-quant-finance/tf_quant_finance/models/utils.py
imports: import tensorflow.compat.v2
  from tf_quant_finance.math import random_ops
label_desc: Use image node_id 6 for calling a global function with example usage: block_diagonal_to_dense() and returns: tf