code: def warning(self, *args, **kwargs):
      self.calls["warning"].append(Params(args, kwargs))
  
file_path: tensorly/doc/sphinx_ext/sphinx_gallery/tests/conftest.py
imports: from __future__ import division, absolute_import, print_function
  import collections
  import logging
  import pytest
  import sphinx_gallery.docs_resolv
  import sphinx_gallery.gen_gallery
  import sphinx_gallery.gen_rst
  from sphinx_gallery import sphinx_compatibility
label_desc: Use image node_id 3 for calling the FakeSphinxApp obj's underlying member method code with example usage: obj.warning() without return types