code: def register_attr(celf, clazzes, attrs):
      clazzes_attrs = []
      if type(clazzes) != tuple:
          clazzes = (clazzes,)
      if type(attrs) == str:
          attrs = (attrs,)
      for clazz in clazzes:
          clazzes_attrs.append((clazz, attrs))
      return celf._register(clazzes_attrs)
  
file_path: catboost/contrib/python/fonttools/fontTools/misc/visitor.py
imports: import enum
label_desc: Use image node_id 3 for calling the Visitor obj's underlying member method code with example usage: obj.register_attr(celf, clazzes, attrs) and returns: celf