code: def _read_metric(fs: "FileSystem", path: str, **load_kwargs) -> Any:
      val = load_path(path, fs, **load_kwargs)
      val = _extract_metrics(val, path)
      return val or {}
  
imports: import os
  from itertools import chain
  from typing import TYPE_CHECKING, Any, Dict, Iterable, Iterator, List, Optional, Tuple, TypedDict, Union
  from funcy import ldistinct
  from scmrepo.exceptions import SCMError
  from dvc.log import logger
  from dvc.scm import NoSCMError
  from dvc.utils import as_posix, expand_paths
  from dvc.utils.collections import ensure_list
  from dvc.utils.serialize import load_path
label_desc: Use image node_id 3 for calling a global function with example usage: _read_metric(fs, path) and returns: unknown