code: def _transform_mask_targets(mask_targets, targets_map):
      _mask_targets = {}
      for k, v in targets_map.items():
          label = mask_targets.get(k, None)
          if label is not None:
              _mask_targets[v] = label
  
      return _mask_targets
  
file_path: fiftyone/fiftyone/utils/labels.py
imports: import eta.core.utils
  import fiftyone.core.labels
  import fiftyone.core.utils
  import fiftyone.core.validation
label_desc: Use image node_id 5 for calling a global function with example usage: _transform_mask_targets(mask_targets, targets_map) and returns: _mask_targets