get or create sub resource

def _sub_resource(self, path):
        """
        get or create sub resource
        """
        if path not in self.resource_map:
            self.resource_map[path] = Resource(
                path, self.fetch, self.resource_map,
                default_headers=self.default_headers)
        return self.resource_map[path]