def using_transport(self, transport=None, path=None, logs=True):
if not transport:<EOL><INDENT>return self<EOL><DEDENT>if self.transport == transport and self.path == path:<EOL><INDENT>return self<EOL><DEDENT>path_required = [SkopeoTransport.DIRECTORY,<EOL>SkopeoTransport.DOCKER_ARCHIVE,<EOL>SkopeoTransport.OCI]<EOL>if transport in path_required:<EOL><INDENT>if not path and logs:<EOL><INDENT>logging.debug("<STR_LIT>")<EOL><DEDENT>self.path = self.mount(path).mount_point<EOL><DEDENT>elif transport == SkopeoTransport.OSTREE:<EOL><INDENT>if path and not os.path.isabs(path):<EOL><INDENT>raise ConuException("<STR_LIT>", path, "<STR_LIT>")<EOL><DEDENT>if not path and logs:<EOL><INDENT>logging.debug("<STR_LIT>")<EOL><DEDENT>self.path = path<EOL><DEDENT>else:<EOL><INDENT>if path and logs:<EOL><INDENT>logging.warning("<STR_LIT>", path)<EOL><DEDENT>self.path = None<EOL><DEDENT>self.transport = transport<EOL>return self<EOL>
change used transport

        :param transport: from where will be this image copied
        :param path in filesystem
        :param logs enable/disable
        :return: self