@staticmethod
def _normalize_key(key):
    """If `key` is str, make lowercase and replace underscores with hyphens
        """
    if isinstance(key, str):
        return key.lower().replace('_', '-')
