class_docstr: Example implementing an API validator test class
docstr: Do some checks of the `obj` API against `params`
  
  The metaclass sets up a ``test_something`` function that runs these
  checks on each (
docstr_tok: ["Do","some","checks","of","the","`","obj","`","API","against","`","params","`","The","metaclass","sets","up","a","``","test_something","``","function","that","runs","these","checks","on","each","("]
code: def validate_something(self, obj, params):
      """Do some checks of the `obj` API against `params`
  
      The metaclass sets up a ``test_something`` function that runs these
      checks on each (
      """
      assert obj.var == params["var"]
      assert obj.get_var() == params["var"]
  
file_path: nibabel/nibabel/tests/test_api_validators.py
imports: import os
  import pytest
label_desc: Use image node_id 2 for calling the TestValidateSomething obj's underlying member method code with example usage: obj.validate_something(obj, params) without return types