code: def _precendence(self, attack, word_attacks, text_attacks):
      if attack in word_attacks:
          return 2
      elif attack == "good_word_attack":
          return 1
      elif attack in text_attacks:
          return 0
      else:
          return None
  
file_path: artificial-adversary/Adversary/adversary.py
imports: from copy import copy
  from functools import partial
  from random import random, seed
  import pandas
  from textblob import TextBlob
  from Adversary.attacks import *
  from Adversary.utils import *
label_desc: Use image node_id 4 for calling the Adversary obj's underlying member method code with example usage: obj._precendence(attack, word_attacks, text_attacks) and returns: int, int, int, None