code: def norm(tensor, order=None, axis=None):
      # pytorch does not accept `None` for any keyword arguments. additionally,
      # pytorch doesn't seems to support keyword arguments in the first place
      kwds = {}
      if axis is not None:
          kwds["dim"] = axis
      if order and order != "inf":
          kwds["p"] = order
  
      if order == "inf":
          res = torch.max(torch.abs(tensor), **kwds)
          if axis is not None:
              return res[0]  # ignore indices output
          return res
      return torch.norm(tensor, **kwds)
  
imports: from packaging.version import Version
  import numpy
  from .core import Backend, backend_types, backend_basic_math, backend_array
label_desc: Use image node_id 11 for calling the PyTorchBackend obj's underlying member method code with example usage: obj.norm(tensor, order, axis) and returns: torch, res, res