code: def main_q3():
      g = Matrix(
          [
              [exp(-t) * (1 - t), exp(-2 * t)],
              [
                  5 * exp((-2 * t)) - exp((-t)),
                  (
                      cos((sqrt(3) * t) / 2)
                      - 3 * sqrt(3) * sin((sqrt(3) * t) / 2)
                  )
                  * exp(-t / 2),
              ],
          ]
      )
      G = g.applyfunc(lambda a: laplace_transform(a, t, s)[0])
      G = TransferFunctionMatrix.from_Matrix(G, s)
      return G
  
file_path: sympy/doc/src/guides/physics/generate_plots.py
imports: from sympy import Matrix, laplace_transform, inverse_laplace_transform, exp, cos, sqrt, sin
  from sympy.abc import s, t
  from sympy.physics.control import *
label_desc: Use image node_id 1 for calling a global function with example usage: main_q3() and returns: G