``{i for i in range(5)}.intersection({i:i for i in range(3)})``

``intersection`` will accept a ``dict`` but agree that this may not be as useful here. The other option is ``set(sample_dict)`` without the call to ``.keys()``