code: def validate_qubit_list(qubit_list):
      
      if not isinstance(qubit_list, (list, range)):
          raise TypeError("run_items must be a list")
      if any(not isinstance(i, integer_types) or i < 0 for i in qubit_list):
          raise TypeError("run_items list must contain positive integer values")
      return qubit_list
docs: Check the validity of qubits for the payload.
  
      :param list|range qubit_list: List of qubits to be validated.