code: def flatten_variables(cls):
      atrs = [
          atr
          for atr in dir(cls)
          if not atr.startswith("__")
          and not atr == "stored_relations"
          and not callable(getattr(cls, atr))
      ]
      for atr in atrs:
          setattr(cls, atr, _flatten(cls.__dict__[atr]))
  
file_path: deepgraph/deepgraph/connectors_and_selectors.py
imports: import inspect
  import warnings
  from collections import Counter
  import numpy
  from deepgraph._find_selected_indices import _find_selected_indices
  from deepgraph.utils import _flatten
label_desc: Use image node_id 4 for calling the CreatorFunction obj's underlying member method code with example usage: obj.flatten_variables(cls) without return types