def _concat_path(prefix, component):
  """Add a component to a path.

  Args:
    prefix: Prefix of the path. If this is empty, it isn't included in the
      returned path.
    component: Component to add to the path.

  Returns:
    Concatenated path string.
  """
  return f'{prefix}/{component}' if prefix else component