def get_doc(arg1, arg2=None):
	if isinstance(arg1, BaseDocument):
		return arg1
	elif isinstance(arg1, basestring):
		doctype = arg1
	else:
		doctype = arg1.get("doctype")

	controller = get_controller(doctype)
	if controller:
		return controller(arg1, arg2)

	raise ImportError, arg1
Construct an horizontal LabeledScale with parent master, a
dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/get_doc--crossover with--dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py/LabeledScale.__init__