def extract(data):
_, tmp_file_path = tempfile.mkstemp()<EOL>try:<EOL><INDENT>with open(tmp_file_path, '<STR_LIT:wb>') as tmp_file:<EOL><INDENT>tmp_file.write(data)<EOL><DEDENT>if zipfile.is_zipfile(tmp_file_path):<EOL><INDENT>return extract_zip(tmp_file_path)<EOL><DEDENT>else:<EOL><INDENT>raise DataSdkError('<STR_LIT>')<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>shutil.rmtree(tmp_file_path, ignore_errors=True)<EOL><DEDENT>
Args:
    data (str | byte):

Returns:
    dict: Dict[str, DataFrame]