<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _handle_hidden_tables(self, tbl_list, attr_name):
 """ Return list of tables, potentially removing hidden elements Parameters tbl_list : list of node-like Type of list elements will vary depending upon parser used attr_name : str Name of the accessor for retrieving HTML attributes Returns ------- list of node-like Return type matches `tbl_list` """

        if not self.displayed_only:
            return tbl_list

        return [x for x in tbl_list if "display:none" not in
                getattr(x, attr_name).get('style', '').replace(" ", "")]