def has_custom_splits(self, string: str) -> bool:
        """
        Returns:
            True iff @string is associated with a set of custom splits.
        """
        key = self._get_key(string)
        return key in self._CUSTOM_SPLIT_MAP

        Returns:
            True iff @string is associated with a set of custom splits.
        
src/black/trans.py