code: def pytest_addoption(parser):
      """Definition for command line option to save figures from tests."""
      parser.addoption(
          "--save",
          nargs="?",
          const="test_images",
          help="Save images rendered by plot",
      )
  
imports: import logging
  import os
  import numpy
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: pytest_addoption(parser) without return types