def __init__(self, nc_device, folder):
self.device = nc_device<EOL>self.pyang_plugins = os.path.dirname(__file__) + '<STR_LIT>'<EOL>self.dir_yang = os.path.abspath(folder)<EOL>if not os.path.isdir(self.dir_yang):<EOL><INDENT>os.makedirs(self.dir_yang)<EOL><DEDENT>self.yang_capabilities = self.dir_yang + '<STR_LIT>'<EOL>
__init__ instantiates a ModelDownloader instance.