code: def _relpath(fs, path):
      # TODO from_os_path changes abs to relative
      # TODO we should be using `dvcfile.relpath` - in case of GitFS (plots diff)
      # and invoking from some subdir `dvcfile.relpath` returns strange long
      # relative paths
      # ("../../../../../../dvc.yaml") - investigate
      return fs.relpath(
          fs.join("/", fs.from_os_path(path)), fs.getcwd()
      )
  
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 10 for calling a global function with example usage: _relpath(fs, path) and returns: fs