def METHOD_NAME():
    fp16_fp64_types = set([dpt.float16, dpt.float64, dpt.complex128])
    fp64_types = set([dpt.float64, dpt.complex128])
    all_dts = tu._all_data_types(True, True)
    assert fp16_fp64_types.issubset(all_dts)
    all_dts = tu._all_data_types(True, False)
    assert dpt.float16 in all_dts
    assert not fp64_types.issubset(all_dts)
    all_dts = tu._all_data_types(False, True)
    assert dpt.float16 not in all_dts
    assert fp64_types.issubset(all_dts)
    all_dts = tu._all_data_types(False, False)
    assert not fp16_fp64_types.issubset(all_dts)