code: def test_linspace():
      x = torch.linspace(-1.0, 1.0, 100, device="cuda")
      assert x.device.type == "cuda"
  
imports: import pytest
  import torch
  import pyro.distributions
  from tests.common import assert_close, requires_cuda
label_desc: Use image node_id 2 for calling a global function with example usage: test_linspace() without return types