code: def test_aten_linspace(self):
      model_path = (
          pytorch_test_dir
          + "/jit/fixtures/test_versioned_linspace_v7.ptl"
      )
      loaded_model = torch.jit.load(model_path)
      sample_inputs = ((3, 10), (-10, 10), (4.0, 6.0), (3 + 4j, 4 + 5j))
      for a, b in sample_inputs:
          output_with_step, output_without_step = loaded_model(a, b)
          # when no step is given, should have used 100
          self.assertTrue(output_without_step.size(dim=0) == 100)
          self.assertTrue(output_with_step.size(dim=0) == 5)
  
      version = self._load_model_version(loaded_model)
      self.assertTrue(version == 8)
  
imports: import io
  import os
  import sys
  import torch
  import zipfile
  from torch.testing import FileCheck
  from typing import Union
  from torch.testing._internal.jit_utils import JitTestCase
label_desc: Use image node_id 7 for calling the TestUpgraders obj's underlying member method code with example usage: obj.test_aten_linspace() without return types