code: def _params_type(self, method_name, instance):
          
  
          method = getattr(instance, method_name, None)
          if not method:
              return False
  
          # Check the parameters we simply count the number of args and don't
          # allow any extras like keywords.
          arg_count = 1
          # on_click method has extra events parameter
          if method_name == "on_click":
              arg_count = 2
          args, vargs, kw, defaults = inspect.getargspec(method)
          if len(args) == arg_count and not vargs and not kw:
              return self.PARAMS_NEW
          else:
              return self.PARAMS_LEGACY
docs: Check to see if this is a legacy method or shiny new one
  
          legacy update method:
              def update(self, i3s_output_list, i3s_config):
                  ...
  
          new update method:
              def update(self):
                  ...
  
          Returns False if the method does not exist,
          else PARAMS_NEW or PARAMS_LEGACY