class_docstr: Example implementing an API validator test class
docstr: Iterator returning (obj, params) pairs
  
  ``obj`` is some instance for which we want to check the API.
  
  ``params`` is a mapping with parameters that you are going to check
  against ``obj``.  See the :meth:`validate_something` method for an
  example.
docstr_tok: ["Iterator","returning","(","obj",",","params",")","pairs","``","obj","``","is","some","instance","for","which","we","want","to","check","the","API",".","``","params","``","is","a","mapping","with","parameters","that","you","are","going","to","check","against","``","obj","``",".","See","the",":","meth",":","`","validate_something","`","method","for","an","example","."]
code: def obj_params(self):
      """Iterator returning (obj, params) pairs
  
      ``obj`` is some instance for which we want to check the API.
  
      ``params`` is a mapping with parameters that you are going to check
      against ``obj``.  See the :meth:`validate_something` method for an
      example.
      """
  
      class C:
          def __init__(self, var):
              self.var = var
  
          def get_var(self):
              return self.var
  
      yield C(5), {"var": 5}
      yield C("easypeasy"), {"var": "easypeasy"}
  
file_path: nibabel/nibabel/tests/test_api_validators.py
imports: import os
  import pytest
label_desc: Use image node_id 1 for calling the TestValidateSomething obj's underlying member method code with example usage: obj.obj_params() and returns: self