code: def _plot_props(out: "Output") -> Dict:
      from dvc.schema import PLOT_PROPS
  
      if not (out.plot):
          raise NotAPlotError(out)
      if isinstance(out.plot, list):
          raise DvcException(
              "Multiple plots per data file not supported."
          )
      if isinstance(out.plot, bool):
          return {}
  
      return project(out.plot, PLOT_PROPS)
  
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 19 for calling a global function with example usage: _plot_props(out) and returns: project, dict