code: def _locate(path):
      """Search for a relative path and turn it into an absolute path.
      This is handy when hunting for data files to be passed into h2o and used by import file.
      Note: This function is for unit testing purposes only.
  
      Parameters
      ----------
      path : str
        Path to search for
  
      :return: Absolute path if it is found.  None otherwise.
      """
  
      tmp_dir = os.path.realpath(os.getcwd())
      possible_result = os.path.join(tmp_dir, path)
      while True:
          if os.path.exists(possible_result):
              return possible_result
  
          next_tmp_dir = os.path.dirname(tmp_dir)
          if next_tmp_dir == tmp_dir:
              raise ValueError("File not found: " + path)
  
          tmp_dir = next_tmp_dir
          possible_result = os.path.join(tmp_dir, path)
  
imports: from .compatibility import *
  import csv
  import contextlib
  import io
  import itertools
  import os
  import re
  import shutil
  import string
  import subprocess
  import sys
  import tempfile
  import zipfile
  from h2o.backend.server import H2OLocalServer
  from h2o.exceptions import H2OValueError
  from h2o.utils.typechecks import assert_is_type, is_type, numeric
  from h2o.utils.threading import local_env
label_desc: Use image node_id 29 for calling a global function with example usage: _locate(path) and returns: possible_result