def _get_display_source_name(self, name: str) -> str:
    source_names = self._context['source_names']
    if ((not self._is_multi) or (source_names == 'hide')):
        source_name = ''
    else:
        short_name = (re.sub('([a-zA-Z])[a-zA-Z]+', '\\1', name) if re.search('[^a-zA-Z]', name) else name[:2])
        source_name = (short_name if (source_names == 'short') else name)
    return source_name
def _get_display_source_name(self, name: str) -> str:
    source_names = self._context['source_names']
    if ((not self._is_multi) or (source_names == 'hide')):
        source_name = 
    else:
        short_name = (re.sub('([a-zA-Z])[a-zA-Z]+', '\\1', name) if re.search('[^a-zA-Z]', name) else name[:2])
        source_name = (short_name if (source_names == 'short') else name)
    return source_name