def METHOD_NAME():
    from tests.basedir.my_experiment import some_func
    main, sources, deps = gather_sources_and_dependencies(
        some_func.__globals__, False, TEST_DIRECTORY
    )
    assert isinstance(main, Source)
    assert isinstance(sources, set)
    assert isinstance(deps, set)
    assert main == Source.create(
        os.path.join(TEST_DIRECTORY, "basedir", "my_experiment.py")
    )
    expected_sources = {
        Source.create(os.path.join(TEST_DIRECTORY, "__init__.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "basedir", "__init__.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "basedir", "my_experiment.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "foo", "__init__.py")),
        Source.create(os.path.join(TEST_DIRECTORY, "foo", "bar.py")),
    }
    assert sources == expected_sources