code: def horizontal_axial_2d_distance(H, W, p=2.0):
      d = local_nd_distance(H, W, p=p, weights=(1, 0))
      return d
  
imports: import math
  from typing import List
  import numpy
  import torch
  from xformers.components.attention.sparsity_config import BigBirdSparsityConfig, BSLongformerSparsityConfig, FixedSparsityConfig, VariableSparsityConfig
label_desc: Use image node_id 11 for calling a global function with example usage: horizontal_axial_2d_distance(H, W, p) and returns: d