code: def get_args(node):
      arg_roles = {}
      args = node.findall('arg') + \
          [node.find('arg1'), node.find('arg2'), node.find('arg3')]
      for arg in args:
          if arg is not None:
              id = arg.attrib.get('id')
              if id is not None:
                  arg_roles[arg.attrib['role']] = (arg.attrib['id'], arg)
      if node.find('features') is not None:
          inevents = node.findall('features/inevent')
          for inevent in inevents:
              if 'id' in inevent.attrib:
                  arg_roles['inevent'] = (inevent.attrib['id'], inevent)
          ptms = node.findall('features/ptm') + node.findall('features/no-ptm')
          for ptm in ptms:
              if 'id' in inevent.attrib:
                  arg_roles['ptm'] = (inevent.attrib['id'], ptm)
      aw = node.find('assoc-with')
      if aw is not None:
          aw_id = aw.attrib['id']
          arg_roles['assoc-with'] = (aw_id, aw)
      return arg_roles