code: def load_dwg(file_obj, **kwargs):
      
      # 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
docs: 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