class_docstr: Adds integration with ya, helps in finding dependencies
class_docstr_tok: ["Adds","integration","with","ya",",","helps","in","finding","dependencies"]
code: def _build_root_rel(self, path):
      real_build_root = os.path.realpath(self.build_root)
      real_path = os.path.abspath(path)
      if path.startswith(real_build_root):
          return os.path.relpath(real_path, real_build_root)
      return path
  
imports: import os
  import sys
  import logging
  import json
  import six
  from .tools import to_str
  from .external import ExternalDataInfo
label_desc: Use image node_id 12 for calling the Ya obj's underlying member method code with example usage: obj._build_root_rel(path) and returns: path, os