def METHOD_NAME(mocked_smart_open, filetype, locations, type_method_map_fixture):
    """Test create_from_dataframe() for all locations and filetypes"""
    data = {"id": [1, 2, 3], "name": ["First", "Second", "Third with unicode पांचाल"]}
    df = pd.DataFrame(data=data)
    with patch(type_method_map_fixture[FileType(filetype)]) as mocked_write:
        path = locations["path"] + "." + filetype
        File(path).create_from_dataframe(df=df)
        mocked_smart_open.assert_called()
        kwargs = mocked_smart_open.call_args.kwargs
        args = mocked_smart_open.call_args.args
        if kwargs["transport_params"]:
            assert isinstance(kwargs["transport_params"]["client"], locations["instance"])
        assert path == args[0]
        mocked_write.assert_called()
        mocked_write.stop()