def attr_val(node, attr_name):
  if node is None:
    raise Exception("None node");
  if node.attributes is None:
    raise Exception("None node.attributes "  + str(type(node)));
  return node.attributes[attr_name].value
dataset/ETHPy150Open lacostej/nosyd/nosyd/xunit.py/attr_val/original