class_docstr: transform and retrieve features of RESample
docstr: get dependency parsing
  
  :return Tuple(list, list):  dependency tag of
      sentence and head of sentence
docstr_tok: ["get","dependency","parsing",":","return","Tuple","(","list",",","list",")",":","dependency","tag","of","sentence","and","head","of","sentence"]
code: def get_dp(self):
      r"""
      get dependency parsing
  
      :return Tuple(list, list):  dependency tag of
          sentence and head of sentence
  
      """
      new_data = copy.deepcopy(self.data["x"])
      pars = TextField(new_data).dependency_parsing
      deprel, head = [], []
      for tuple in pars:
          deprel.append(tuple[-1])
          head.append(int(tuple[-2]))
  
      assert len(deprel) == len(
          self.data["x"]
      ), "length of deprel should be the same as data"
  
      assert len(head) == len(
          self.data["x"]
      ), "length of head should be the same as data"
  
      return deprel, head
  
imports: import random
  import copy
  from .sample import Sample
  from ..field import TextField
  from ....common.settings import TASK_MASK
label_desc: Use image node_id 7 for calling the RESample obj's underlying member method code with example usage: obj.get_dp() and returns: deprel,  head