def resource(self, api_path=None, base_path='/api/now', chunk_size=None, **kwargs):
        """Creates a new :class:`Resource` object after validating paths

        :param api_path: Path to the API to operate on
        :param base_path: (optional) Base path override
        :param chunk_size: Response stream parser chunk size (in bytes)
        :param **kwargs: Pass request.request parameters to the Resource object
        :return:
            - :class:`Resource` object
        :raises:
            - InvalidUsage: If a path fails validation
        """

        for path in [api_path, base_path]:
            URLBuilder.validate_path(path)

        return Resource(api_path=api_path,
                        base_path=base_path,
                        parameters=self.parameters,
                        chunk_size=chunk_size or 8192,
                        session=self.session,
                        base_url=self.base_url,
                        **kwargs)