code: def lookup_error_params(code):
      for group in registry.groups:
          for error_params in group.errors:
              if error_params.code == code:
                  return error_params
  
file_path: TensorLayer/tests/pending/test_pydocstyle.py
imports: import os
  import unittest
  from pydocstyle.checker import check, violations
  from tests.utils import list_all_py_files
label_desc: Use image node_id 1 for calling a global function with example usage: lookup_error_params(code) and returns: error_params