code: def validate(self):
          
          # Literals representing boolean values or None are correctly representable and supported.
          if self.value is None or self.value is True or self.value is False:
              return
  
          # Literal safe strings are correctly representable and supported.
          if isinstance(self.value, six.string_types):
              validate_safe_string(self.value)
              return
  
          # Literal ints are correctly representable and supported.
          if isinstance(self.value, int):
              return
  
          # Literal empty lists, and non-empty lists of safe strings, are
          # correctly representable and supported.
          if isinstance(self.value, list):
              if len(self.value) > 0:
                  for x in self.value:
                      validate_safe_string(x)
              return
  
          raise GraphQLCompilationError(u'Cannot represent literal: {}'.format(self.value))
docs: Validate that the Literal is correctly representable.