class_docstr: Adds integration with ya, helps in finding dependencies
class_docstr_tok: ["Adds","integration","with","ya",",","helps","in","finding","dependencies"]
code: def file(
      self,
      path,
      diff_tool=None,
      local=False,
      diff_file_name=None,
      diff_tool_timeout=None,
  ):
      if diff_tool:
          if isinstance(diff_tool, tuple):
              diff_tool = list(diff_tool)
          # Normalize path to diff_tool - abs path in run_test node won't be accessible in canonize node
          if isinstance(diff_tool, list):
              diff_tool[0] = self._build_root_rel(diff_tool[0])
          else:
              diff_tool = self._build_root_rel(diff_tool)
  
      return ExternalDataInfo.serialize_file(
          path,
          diff_tool=diff_tool,
          local=local,
          diff_file_name=diff_file_name,
          diff_tool_timeout=diff_tool_timeout,
      )
  
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 13 for calling the Ya obj's underlying member method code with example usage: obj.file(path, diff_tool, local, diff_file_name, diff_tool_timeout) and returns: ExternalDataInfo