code: def make_pair(
      shape,
      device="cuda",
      alpha=1e-2,
      beta=0.0,
      trans=False,
      data=None,
      dtype=torch.float32,
  ):
      if data is None:
          data = torch.randn(
              shape,
              dtype=torch.float32,
              requires_grad=True,
              device=device,
          )
      ref_ret = data
      ref_ret = ref_ret * alpha + beta
      ref_ret = ref_ret.half().to(dtype)
      if trans:
          ref_ret = ref_ret.t().requires_grad_()
      ref_ret = ref_ret.detach().requires_grad_()
      tri_ret = ref_ret.clone().detach().requires_grad_()
      return ref_ret, tri_ret
  
file_path: triton/python/test/unit/operators/test_blocksparse.py
imports: import pytest
  import torch
  import triton
  import triton.ops
label_desc: Use image node_id 2 for calling a global function with example usage: make_pair(shape, device, alpha, beta, trans, data, dtype) and returns: ref_ret,  tri_ret