def METHOD_NAME(tmpdir):
    tmp_dir = str(tmpdir)
    assert os.path.isdir(tmp_dir)
    foo_bar_dir = os.path.join(tmp_dir, "foo", "bar")
    mkdir_p(foo_bar_dir)
    assert os.path.isdir(foo_bar_dir)
    # Make sure calling function twice does not raise an exception
    mkdir_p(foo_bar_dir)
    assert os.path.isdir(foo_bar_dir)