code: def test_versioned_div_tensor(self, sample_input):
      def historic_div(self, other):
          if self.is_floating_point() or other.is_floating_point():
              return self.true_divide(other)
          return self.divide(other, rounding_mode="trunc")
  
      # Tensor x Tensor
      class MyModule(torch.nn.Module):
          def forward(self, a, b):
              result_0 = a / b
              result_1 = torch.div(a, b)
              result_2 = a.div(b)
  
              return result_0, result_1, result_2
  
      # Loads historic module
      try:
          v3_mobile_module = _load_for_lite_interpreter(
              pytorch_test_dir
              + "/cpp/jit/upgrader_models/test_versioned_div_tensor_v2.ptl"
          )
      except Exception as e:
          self.skipTest("Failed to load fixture!")
  
      current_mobile_module = self._save_load_mobile_module(MyModule)
  
      for val_a, val_b in product(sample_input, sample_input):
          a = torch.tensor((val_a,))
          b = torch.tensor((val_b,))
  
          def _helper(m, fn):
              m_results = self._try_fn(m, a, b)
              fn_result = self._try_fn(fn, a, b)
  
              if isinstance(m_results, Exception):
                  self.assertTrue(isinstance(fn_result, Exception))
              else:
                  for result in m_results:
                      self.assertEqual(result, fn_result)
  
          _helper(v3_mobile_module, historic_div)
          _helper(current_mobile_module, torch.div)
  
imports: from itertools import product
  import io
  import os
  import sys
  import hypothesis.strategies
  from hypothesis import example, settings, given
  from typing import Union
  import torch
  from torch.testing._internal.jit_utils import JitTestCase
  from torch.jit.mobile import _load_for_lite_interpreter
label_desc: Use image node_id 6 for calling the TestSaveLoadForOpVersion obj's underlying member method code with example usage: obj.test_versioned_div_tensor(sample_input) and returns: self, self, result_0,  result_1,  result_2