class_docstr: Class for checking all interface specifications
class_docstr_tok: ["Class","for","checking","all","interface","specifications"]
code: def _normalize_repr(cls, value):
      if isinstance(value, list):
          return "[{}]".format(
              ", ".join(map(cls._normalize_repr, value))
          )
      if isinstance(value, tuple):
          if len(value) == 1:
              return f"({cls._normalize_repr(value[0])},)"
          return "({})".format(
              ", ".join(map(cls._normalize_repr, value))
          )
      if isinstance(value, (str, bytes)):
          value = repr(value)
          if value[0] not in ('"', "'"):
              value = value[1:]
      else:
          value = repr(value)
      return value
  
file_path: nipype/tools/checkspecs.py
imports: import os
  import re
  import sys
  import warnings
  import black
label_desc: Use image node_id 9 for calling the InterfaceChecker obj's underlying member method code with example usage: obj._normalize_repr(cls, value) and returns: value, str, str, str, cls, str