@staticmethod
def __sanitize_requirements(requirements):
    """ @type requirements: dict """
    if requirements:
        if not isinstance(requirements, dict):
            raise Exception(
                'Invalid requirements format. They should be a dict')
        for key, value in requirements.items():
            requirements[key] = '(%s)' % value
    else:
        requirements = {}
    return requirements
