def to_html(ds: Any) -> str:
rm = min(<NUM_LIT:10>, ds.shape[<NUM_LIT:0>])<EOL>cm = min(<NUM_LIT:10>, ds.shape[<NUM_LIT:1>])<EOL>html = "<STR_LIT>"<EOL>if ds.attrs.__contains__("<STR_LIT:title>"):<EOL><INDENT>html += "<STR_LIT>" + ds.attrs["<STR_LIT:title>"] + "<STR_LIT>"<EOL><DEDENT>html += f"<STR_LIT>"<EOL>html += ds.filename + "<STR_LIT>"<EOL>for (name, val) in ds.attrs.items():<EOL><INDENT>html += f"<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL>for ca in ds.col_attrs.keys():<EOL><INDENT>html += "<STR_LIT>"<EOL>for ra in ds.row_attrs.keys():<EOL><INDENT>html += "<STR_LIT>"  <EOL><DEDENT>html += "<STR_LIT>" + ca + "<STR_LIT>"  <EOL>for v in ds.col_attrs[ca][:cm]:<EOL><INDENT>html += "<STR_LIT>" + str(v) + "<STR_LIT>"<EOL><DEDENT>if ds.shape[<NUM_LIT:1>] > cm:<EOL><INDENT>html += "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL>for ra in ds.row_attrs.keys():<EOL><INDENT>html += "<STR_LIT>" + ra + "<STR_LIT>"  <EOL><DEDENT>html += "<STR_LIT>"  <EOL>for v in range(cm):<EOL><INDENT>html += "<STR_LIT>"<EOL><DEDENT>if ds.shape[<NUM_LIT:1>] > cm:<EOL><INDENT>html += "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL>for row in range(rm):<EOL><INDENT>html += "<STR_LIT>"<EOL>for ra in ds.row_attrs.keys():<EOL><INDENT>html += "<STR_LIT>" + str(ds.row_attrs[ra][row]) + "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"  <EOL>for v in ds[row, :cm]:<EOL><INDENT>html += "<STR_LIT>" + str(v) + "<STR_LIT>"<EOL><DEDENT>if ds.shape[<NUM_LIT:1>] > cm:<EOL><INDENT>html += "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL><DEDENT>if ds.shape[<NUM_LIT:0>] > rm:<EOL><INDENT>html += "<STR_LIT>"<EOL>for v in range(rm + <NUM_LIT:1> + len(ds.row_attrs.keys())):<EOL><INDENT>html += "<STR_LIT>"<EOL><DEDENT>if ds.shape[<NUM_LIT:1>] > cm:<EOL><INDENT>html += "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL><DEDENT>html += "<STR_LIT>"<EOL>return html<EOL>
Return an HTML representation of the loom file or view, showing the upper-left 10x10 corner.