code: def repr_string(obj, private=True):
      """Generate a __repr_ string for an filter object.
  
      It will pretty print numpy arrays to be readable, and display lists
      with indexed values. It also gathers up all properties.
      """
  
      keys = obj.__dir__()
      keys = [key for key in keys if key[:2] != "__"]
      if not private:
          keys = [key for key in keys if key[0] != "_"]
  
      s = []
      for key in keys:
          val = getattr(obj, key)
          if type(val).__name__ not in ["method", "function"]:
              s.append(pretty_str(key, val))
      return type(obj).__name__ + " object\n" + "\n".join(s)
  
imports: from __future__ import print_function
  from collections import defaultdict, deque
  import copy
  import inspect
  import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: repr_string(obj, private) and returns: unknown