def strip_implicit_build_name(path):
  path = path.replace('/BUILD:', ':').replace('BUILD:', ':')
  path = path.replace('/BUILD.anvil:', ':').replace('BUILD.anvil:', ':')
  return path
Strips the implicit build names (such as BUILD) from the given path.
dataset/ETHPy150Open google/anvil-build/anvil/util.py/strip_implicit_build_name