class_docstr: Coref Sample
class_docstr_tok: ["Coref","Sample"]
docstr: Generate [0, 0, 1, 1, 1, 2, 2]
  from self.sen_map = [2, 3, 2]
  
  :param:
  :return list: sentence mapping with equal length to x,
      like [0, 0, 1, 1, 1, 2, 2]
docstr_tok: ["Generate","[","0",",","0",",","1",",","1",",","1",",","2",",","2","]","from","self.sen_map","=","[","2",",","3",",","2","]",":","param",":",":","return","list",":","sentence","mapping","with","equal","length","to","x",",","like","[","0",",","0",",","1",",","1",",","1",",","2",",","2","]"]
code: def eqlen_sen_map(self):
      r"""
      Generate [0, 0, 1, 1, 1, 2, 2]
      from self.sen_map = [2, 3, 2]
  
      :param:
      :return list: sentence mapping with equal length to x,
          like [0, 0, 1, 1, 1, 2, 2]
  
      """
      eqlen_sen_map = []
      for i in range(len(self.sen_map)):
          eqlen_sen_map.extend([i] * self.sen_map[i])
      return eqlen_sen_map
  
imports: from ....common.settings import ORIGIN, TASK_MASK
  from ....common.utils.fp_utils import *
  from ....common.utils.shift_utils import *
  from .sample import Sample
  from ..field import ListField, TextField
label_desc: Use image node_id 10 for calling the CorefSample obj's underlying member method code with example usage: obj.eqlen_sen_map() and returns: eqlen_sen_map