code: def _convert_label(label, sent_len):
      np_label = np.zeros(sent_len, dtype=int)
      if label != []:
          np_label[np.array(label)] = 1
      return np_label.tolist()
  
imports: import os
  import numpy
  from functools import partial
  from .pipe import Pipe
  from .utils import _drop_empty_instance
  from ..loader.summarization import ExtCNNDMLoader
  from ..data_bundle import DataBundle
  from ...core.vocabulary import Vocabulary
label_desc: Use image node_id 3 for calling a global function with example usage: _convert_label(label, sent_len) and returns: np_label