def enable_policy_type_in_root(org_client, root_id):
    """
    Ensure policy type 'SERVICE_CONTROL_POLICY' is enabled in the
    organization root.
    """
    p_type = org_client.list_roots()['Roots'][0]['PolicyTypes']
    if not p_type or p_type[0]['Type'] == 'SERVICE_CONTROL_POLICY' and p_type[0
        ]['Status'] != 'ENABLED':
        org_client.enable_policy_type(RootId=root_id, PolicyType=
            'SERVICE_CONTROL_POLICY')
