code: def unmap(data, count, inds, fill=0):
      """Unmap a subset of item (data) back to the original set of items (of
      size count)"""
      if count == len(inds):
          return data
  
      if len(data.shape) == 1:
          ret = np.empty((count,), dtype=data.dtype)
          ret.fill(fill)
          ret[inds] = data
      else:
          ret = np.empty((count,) + data.shape[1:], dtype=data.dtype)
          ret.fill(fill)
          ret[inds, :] = data
      return ret
  
file_path: dense-pose/detectron/roi_data/data_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from collections import namedtuple
  import logging
  import numpy
  import threading
  from detectron.core.config import cfg
  from detectron.modeling.generate_anchors import generate_anchors
  import detectron.utils.boxes
label_desc: Use image node_id 2 for calling a global function with example usage: unmap(data, count, inds, fill) and returns: ret, data