def METHOD_NAME(k8sdict, to_cluster_scoped, to_ns_scoped):
    o = k8sobject.K8sObject(k8sdict)
    assert (o < _cluster_scoped_obj) == to_cluster_scoped
    assert (o < _ns_scoped_obj) == to_ns_scoped
    assert (o > _cluster_scoped_obj) == (not to_cluster_scoped)
    assert (o > _ns_scoped_obj) == (not to_ns_scoped)