code: def _unify_path(path):
      py_ext = ".py"
  
      path = path.strip()
      if _conftest_load_policy_is_local(path) and path.endswith(py_ext):
          # Try to find best match for path as a module among test modules and use it as a class name.
          # This is the only way to unify different CONFTEST_LOAD_POLICY modes
          suff_tree = _suffix_test_modules_tree()
          node, res = suff_tree, []
  
          assert path.endswith(py_ext), path
          parts = path[: -len(py_ext)].split(SEP)
  
          # Use SEP as trailing terminator to make an extra step
          # and find a proper match when parts is a full matching path
          for p in reversed([SEP] + parts):
              if p in node:
                  node = node[p]
                  res.append(p)
              else:
                  if res:
                      return ".".join(reversed(res)) + py_ext
                  else:
                      # Top level test module
                      if TEST_MOD_PREFIX + p in sys.extra_modules:
                          return p + py_ext
                      # Unknown module - raise an error
                      break
  
          raise MissingTestModule(
              "Can't find proper module for '{}' path among: {}".format(
                  path, suff_tree
              )
          )
      else:
          return path
  
imports: import collections
  import functools
  import math
  import os
  import re
  import sys
  import yatest_lib.tools
label_desc: Use image node_id 13 for calling a global function with example usage: _unify_path(path) and returns: path, unknown, unknown