Load Data into 3D slicer

I am new to 3D slicer and would like to load data for segmentation using the python interactor.

I have been using this code to load the sample data:
import SampleData
sampleDataLogic = SampleData.SampleDataLogic()
masterVolumeNode = sampleDataLogic.downloadMRBrainTumor1()
n = getNode(‘MRBrainTumor1’)

I would like this same functionality but using DICOM files stored on my Desktop. I have looked at the documentation but still have some confusion. Any help would be appreciated.

You should have a look through the script repository to see what kind of things are possible.