def METHOD_NAME(self, name: str) -> str:
    if '/' in name:
        raise ValueError('Paths are unsupported for test selection, '
                         f'requiring "{name}" is wrong')
    if re.fullmatch(r'\d+', name):
        # Numbered tests are old naming convention. We should convert them
        # to three-digit-length, like 1 --> 001.
        name = f'{int(name):03}'
    else:
        # Named tests all should be in tests/ subdirectory
        name = os.path.join('tests', name)
    if name not in self.all_tests:
        raise ValueError(f'Test "{name}" is not found')
    return name