def _GetComparable(self, sub_comparable_string=''):
    """Retrieves the comparable representation.

    This is a convenience function for constructing comparables.

    Args:
      sub_comparable_string (str): sub comparable string.

    Returns:
      str: comparable representation of the path specification.
    """
    string_parts = []

    string_parts.append(getattr(self.parent, 'comparable', ''))
    string_parts.append('type: {0:s}'.format(self.type_indicator))

    if sub_comparable_string:
      string_parts.append(', {0:s}'.format(sub_comparable_string))
    string_parts.append('\n')

    return ''.join(string_parts)