def label_scoped_path(label, path):
    """Return the path scoped to the label of a build target.

    Args:
      label: The label of a build target.
      path: The path that should be scoped to the label.
    Returns:
      The path after being scoped to the label.
    """
    return label.name + "/" + path.lstrip("/")