code: def chain_matmul(*matrices, out=None):
      return ivy.multi_dot(matrices, out=out)
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  import ivy.functional.frontends.torch
  from ivy.functional.frontends.torch.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 7 for calling a global function with example usage: chain_matmul() and returns: ivy