code: def qr(x, mode="reduced"):
      x = convert_to_tensor(x)
      if mode not in {"reduced", "complete"}:
          raise ValueError(
              "`mode` argument value not supported. "
              "Expected one of {'reduced', 'complete'}. "
              f"Received: mode={mode}"
          )
      x = convert_to_tensor(x)
      return torch.linalg.qr(x, mode=mode)
  
imports: import math
  import torch
  from keras.backend import standardize_dtype
  from keras.backend.torch.core import convert_to_tensor
  from keras.backend.torch.core import get_device
  from keras.backend.torch.numpy import pad
label_desc: Use image node_id 6 for calling a global function with example usage: qr(x, mode) and returns: torch