code: def _get_dash_dom_by_attribute(self, attr):
      return BeautifulSoup(
          self.find_element(self.dash_entry_locator).get_attribute(
              attr
          ),
          "lxml",
      )
  
file_path: dash/dash/testing/dash_page.py
imports: from bs4 import BeautifulSoup
label_desc: Use image node_id 1 for calling the DashPageMixin obj's underlying member method code with example usage: obj._get_dash_dom_by_attribute(attr) and returns: BeautifulSoup