code: def test_affine_subs():
      # This was recorded from test_pyro_convert.
      x = Subs(
          Gaussian(
              torch.tensor(
                  [
                      1.3027106523513794,
                      1.4167094230651855,
                      -0.9750942587852478,
                      0.5321089029312134,
                      -0.9039931297302246,
                  ],
                  dtype=torch.float64,
              ),  # noqa
              torch.tensor(
                  [
                      [
                          1.0199567079544067,
                          0.9840421676635742,
                          -0.473368763923645,
                          0.34206756949424744,
                          -0.7562517523765564,
                      ],
                      [
                          0.9840421676635742,
                          1.511502742767334,
                          -1.7593903541564941,
                          0.6647964119911194,
                          -0.5119513273239136,
                      ],
                      [
                          -0.4733688533306122,
                          -1.7593903541564941,
                          3.2386727333068848,
                          -0.9345928430557251,
                          -0.1534711718559265,
                      ],
                      [
                          0.34206756949424744,
                          0.6647964119911194,
                          -0.9345928430557251,
                          0.3141004145145416,
                          -0.12399007380008698,
                      ],
                      [
                          -0.7562517523765564,
                          -0.5119513273239136,
                          -0.1534711718559265,
                          -0.12399007380008698,
                          0.6450173854827881,
                      ],
                  ],
                  dtype=torch.float64,
              ),  # noqa
              (
                  (
                      "state_1_b6",
                      Reals[3],
                  ),
                  (
                      "obs_b2",
                      Reals[2],
                  ),
              ),
          ),
          (
              (
                  "obs_b2",
                  Contraction(
                      ops.null,
                      ops.add,
                      frozenset(),
                      (
                          Variable("bias_b5", Reals[2]),
                          Tensor(
                              torch.tensor(
                                  [
                                      -2.1787893772125244,
                                      0.5684312582015991,
                                  ],
                                  dtype=torch.float64,
                              ),  # noqa
                              (),
                              "real",
                          ),
                      ),
                  ),
              ),
          ),
      )
      assert isinstance(x, (Gaussian, Contraction)), x.pretty()
  
file_path: funsor/test/examples/test_sensor_fusion.py
imports: from collections import OrderedDict
  import pytest
  import torch
  import funsor.ops
  import funsor.torch.distributions
  from funsor.cnf import Contraction
  from funsor.domains import Bint, Reals
  from funsor.gaussian import Gaussian
  from funsor.pyro.convert import dist_to_funsor, matrix_and_mvn_to_funsor
  from funsor.tensor import Tensor
  from funsor.terms import Subs, Variable
  from funsor.testing import random_mvn
label_desc: Use image node_id 3 for calling a global function with example usage: test_affine_subs() without return types