code: def _str_examples(self):
      examples_str = "\n".join(self["Examples"])
  
      if (
          self.use_plots
          and re.search(IMPORT_MATPLOTLIB_RE, examples_str)
          and "plot::" not in examples_str
      ):
          out = []
          out += self._str_header("Examples")
          out += [".. plot::", ""]
          out += self._str_indent(self["Examples"])
          out += [""]
          return out
      elif (
          re.search(IMPORT_PYVISTA_RE, examples_str)
          and "plot-pyvista::" not in examples_str
      ):
          out = []
          out += self._str_header("Examples")
          out += [".. pyvista-plot::", ""]
          out += self._str_indent(self["Examples"])
          out += [""]
          return out
      else:
          return self._str_section("Examples")
  
imports: import datetime
  import faulthandler
  import locale
  import os
  import sys
  import make_external_gallery
  import make_tables
  import pyvista
  from pyvista.core.errors import PyVistaDeprecationWarning
  from pyvista.core.utilities.docs import linkcode_resolve, pv_html_page_context
  from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
  import warnings
  from sphinx_gallery.sorting import FileNameSortKey
  import re
  from numpydoc.docscrape_sphinx import SphinxDocString
  import pydata_sphinx_theme
label_desc: Use image node_id 1 for calling a global function with example usage: _str_examples() and returns: out, out, self