code: def _matches(targets, config_file, plot_id):
      import re
  
      from dvc.utils.plots import get_plot_id
  
      if not targets:
          return True
  
      full_id = get_plot_id(plot_id, config_file)
      if any(
          (re.match(target, plot_id) or re.match(target, full_id))
          for target in targets
      ):
          return True
      return False
  
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 8 for calling a global function with example usage: _matches(targets, config_file, plot_id) and returns: False, True, True