@classmethod
def _convert_name(cls, name):
    """Convert the `name` to a proper function name.

        Args:
            name (str): The name to be converted

        Returns:
            (tuple) The converted name and the number of tokens
        """
    if name == '':
        return cls.dynamic_prefix + '_', 0
    tokens = name.split()
    prefix = '' if tokens[0].startswith('_') else '_'
    return cls.dynamic_prefix + prefix + '_'.join(tokens), len(tokens)
