code: def test_phony_requires_grad():
      p1 = get_phony(torch.device("cpu"), requires_grad=True)
      p2 = get_phony(torch.device("cpu"), requires_grad=False)
      assert p1.requires_grad
      assert not p2.requires_grad
  
imports: import torch
  from torch.distributed.pipeline.sync.phony import get_phony
  from torch.testing._internal.common_utils import run_tests
label_desc: Use image node_id 2 for calling a global function with example usage: test_phony_requires_grad() without return types