code: def _get_data_targets(definitions: Dict):
      result: Set = set()
      if "data" in definitions:
          for content in definitions["data"].values():
              if "data" in content:
                  for plot_id, config in content["data"].items():
                      result = result.union(
                          infer_data_sources(plot_id, config)
                      )
      return result
  
imports: import csv
  import io
  import os
  from collections import defaultdict
  from copy import deepcopy
  from functools import partial
  from multiprocessing import cpu_count
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, Set, Union
  import dpath
  import dpath.options
  from funcy import first, ldistinct, project, reraise
  from dvc.exceptions import DvcException
  from dvc.log import logger
  from dvc.utils import error_handler, errored_revisions
  from dvc.utils.objects import cached_property
  from dvc.utils.serialize import PARSERS, EncodingError
  from dvc.utils.threadpool import ThreadPoolExecutor
  from dvc_render.image import ImageRenderer
label_desc: Use image node_id 6 for calling a global function with example usage: _get_data_targets(definitions) and returns: result