code: def _parse_effects(self, effects_json=None):
          # type: (dict) -> Any
          
          if isinstance(effects_json, list):
              return [ValidatorEffect.parse(effect) for effect in effects_json]
          elif isinstance(effects_json, dict):
              return ValidatorEffect.parse(effects_json)
          else:
              raise Exception("The provided json, should be a list of valid effects, "
                              "or a single effect. Got '{}'".format(effects_json))
docs: Parse multiple effects from an effects(list) json.