def _get_handled_methods(self, actions_map):
        methods = ('OPTIONS',)

        defined_actions = []
        for action_name in actions_map.keys():
            view_method = getattr(self, action_name, None)
            method_exists = view_method is not None
            method_defined = view_method != self.not_allowed_action
            if method_exists and method_defined:
                defined_actions.append(action_name)

        for action in defined_actions:
            methods += actions_map[action]

        return methods
Called by self._format_as(space), to check whether self and space
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/view_helpers.py/OptionsViewMixin._get_handled_methods--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/sandbox/rnn/space/__init__.py/SequenceDataSpace._check_sizes