@staticmethod
    def is_enabled():
        return hasattr(sys.stderr, '_original_stream') or hasattr(sys.stdout, '_original_stream')
Return a security group rule in desired API response format.
dataset/ETHPy150Open Robpol86/colorclass/colorclass/windows.py/Windows.is_enabled--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/legacy_v2/contrib/security_groups.py/SecurityGroupControllerBase._format_security_group_rule