code: def set_passport_data_errors(self, user_id, errors):
          
          from pytgbot.api_types.sendable.passport import PassportElementError
          
          assert_type_or_raise(user_id, int, parameter_name="user_id")
          
          assert_type_or_raise(errors, list, parameter_name="errors")
          
          result = self.do("setPassportDataErrors", user_id=user_id, errors=errors)
          if self.return_python_objects:
              logger.debug("Trying to parse {data}".format(data=repr(result)))
              try:
                  return from_array_list(bool, result, list_level=0, is_builtin=True)
              except TgApiParseException:
                  logger.debug("Failed parsing as primitive bool", exc_info=True)
              # end try
              # no valid parsing so far
              raise TgApiParseException("Could not parse result.")  # See debug log for details!
          # end if return_python_objects
          return result
docs: Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.
          Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.
  
          https://core.telegram.org/bots/api#setpassportdataerrors
  
          
          Parameters:
          
          :param user_id: User identifier
          :type  user_id: int
          
          :param errors: A JSON-serialized array describing the errors
          :type  errors: list of pytgbot.api_types.sendable.passport.PassportElementError
          
          
          Returns:
  
          :return: Returns True on success
          :rtype:  bool