<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_dwg(file_obj, **kwargs):
 """ Load DWG files by converting them to DXF files using TeighaFileConverter. Parameters file_obj : file- like object Returns loaded : dict kwargs for a Path2D constructor """

    # read the DWG data into a bytes object
    data = file_obj.read()
    # convert data into R14 ASCII DXF
    converted = _teigha_convert(data)
    # load into kwargs for Path2D constructor
    result = load_dxf(util.wrap_as_stream(converted))

    return result