def _get_args(self, actor_class):
        """
        Return a dict with a list of mandatory arguments, and a dictionary of optional arguments.
        Either one may be empty.
        """
        a = inspect.getargspec(actor_class.init)
        defaults = [] if not a.defaults else a.defaults
        n_mandatory = len(a.args) - len(defaults)
        mandatory = a.args[1:n_mandatory]
        optional = {arg:default for arg, default in zip(a.args[n_mandatory:], defaults)}
        return {'mandatory':mandatory, 'optional':optional}
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/actorstore/store.py/ActorStore._get_args/original