code: def run_transducer_joint(
      self, for_vector_kernel, pack_output, relu, dropout
  ):
      self.gen_input(for_vector_kernel=for_vector_kernel)
      # Generate reference
      f_ref = self.f_tst.data.clone()
      g_ref = self.g_tst.data.clone()
      f_ref.requires_grad = True
      g_ref.requires_grad = True
  
      my_joint = TransducerJoint(
          pack_output=pack_output,
          relu=relu,
          dropout=dropout,
          dropout_prob=self.dropout_prob,
          probe_mask=True,
      )
      if not pack_output:
          h_tst = my_joint(
              f=self.f_tst,
              g=self.g_tst,
              f_len=self.f_len,
              g_len=self.g_len,
          )
          h_tst.backward(self.h_grad)
          if dropout:
              mask = my_joint.mask_probe[0]
      else:
          batch_offset = torch.cumsum(self.f_len * self.g_len, dim=0)
          h_tst = my_joint(
              f=self.f_tst,
              g=self.g_tst,
              f_len=self.f_len,
              g_len=self.g_len,
              batch_offset=batch_offset,
              packed_batch=batch_offset[-1],
          )
          h_tst.backward(self.h_grad_packed)
          if dropout:
              mask_packed = my_joint.mask_probe[0]
              mask = self._unpack(mask_packed, self.f_len, self.g_len)
  
      # reference
      (
          h_ref,
          f_grad_ref,
          g_grad_ref,
      ) = transducer_ref.transducer_joint_reference(
          f=f_ref,
          g=g_ref,
          h_grad=self.h_grad,
          f_len=self.f_len,
          g_len=self.g_len,
          pack_output=pack_output,
          relu=relu,
          dropout=dropout,
          dropout_prob=self.dropout_prob,
          mask=mask if dropout else None,
      )
  
      f_grad_tst = self.f_tst.grad
      g_grad_tst = self.g_tst.grad
  
      torch.testing.assert_close(h_ref, h_tst, atol=1e-5, rtol=1e-5)
      torch.testing.assert_close(
          f_grad_ref, f_grad_tst, atol=5e-5, rtol=1e-3
      )
      torch.testing.assert_close(
          g_grad_ref, g_grad_tst, atol=1e-3, rtol=1e-3
      )
  
imports: import unittest
  import torch
label_desc: Use image node_id 5 for calling the TransducerJointTest obj's underlying member method code with example usage: obj.run_transducer_joint(for_vector_kernel, pack_output, relu, dropout) without return types