def get_build_file_path(path):
  if os.path.isdir(path):
    if os.path.isfile(os.path.join(path, 'BUILD.anvil')):
      return os.path.join(path, 'BUILD.anvil')
    elif os.path.isfile(os.path.join(path, 'BUILD')):
      return os.path.join(path, 'BUILD')
  return path
Lazily map ``function`` over ``sequence``, yielding two streams:
dataset/ETHPy150Open google/anvil-build/anvil/util.py/get_build_file_path--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/testtools/_base.py/_split_map_maybe