def METHOD_NAME():
    d = {"key_one": "key_one", "key_optional": "key_optional"}
    result = select_from_typed_dict(typed_dict=MyTypeDict, obj=d)
    assert result == d
    d["key_too_much"] = "key_too_much"
    result = select_from_typed_dict(typed_dict=MyTypeDict, obj=d)
    assert result == {"key_one": "key_one", "key_optional": "key_optional"}
    del d["key_one"]
    result = select_from_typed_dict(typed_dict=MyTypeDict, obj=d)
    assert result == {"key_optional": "key_optional"}
    d = {"key_one": "key_one", "key_optional": None}
    result = select_from_typed_dict(typed_dict=MyTypeDict, obj=d, filter=True)
    assert result == {"key_one": "key_one"}
    d = {"key_one": "key_one", "key_optional": {}}
    result = select_from_typed_dict(typed_dict=MyTypeDict, obj=d, filter=True)
    assert result == {"key_one": "key_one"}