code: def get_args(request_args, allowed_int_args=(), allowed_str_args=(), allowed_bool_args=()):
      
      args = {}
  
      for allowed_int_arg in allowed_int_args:
          int_value = request_args.get(allowed_int_arg, default=None, type=None)
  
          if int_value:
              args[allowed_int_arg] = int(int_value)
  
      for allowed_str_arg in allowed_str_args:
          str_value = request_args.get(allowed_str_arg, default=None, type=None)
  
          if str_value:
              args[allowed_str_arg] = str_value
  
      for allowed_bool_arg in allowed_bool_args:
          str_value = request_args.get(allowed_bool_arg, default=None, type=None)
  
          if str_value == 'true':
              args[allowed_bool_arg] = True
  
          elif str_value == 'false':
              args[allowed_bool_arg] = False
  
      return args
docs: Check allowed argument names and return is as dictionary