code: def _get_rev(self, locked: bool = True):
      d = self.def_repo
      return (d.get(self.PARAM_REV_LOCK) if locked else None) or d.get(
          self.PARAM_REV
      )
  
file_path: dvc/dvc/dependency/repo.py
imports: from copy import deepcopy
  from typing import TYPE_CHECKING, Any, Dict, Optional, Union
  import voluptuous
  from dvc.utils import as_posix
  from .base import Dependency
label_desc: Use image node_id 13 for calling the RepoDependency obj's underlying member method code with example usage: obj._get_rev(locked) and returns: unknown