def _create_body(self, name, img=None, cont=None, img_format=None,
            img_name=None):
        img = utils.get_id(img)
        cont = utils.get_name(cont)
        body = {"type": name}
        if name == "export":
            body["input"] = {
                    "image_uuid": img,
                    "receiving_swift_container": cont}
        else:
            nm = "%s/%s" % (cont, utils.get_name(img))
            body["input"] = {
                    "image_properties": {"name": img_name or img},
                    "import_from": nm,
                    "import_from_format": img_format or DEFAULT_FORMAT}
        return body
Given a RegexLexer token dictionary 'tokens', replace all patterns that
dataset/ETHPy150Open rackspace/pyrax/pyrax/image.py/ImageTasksManager._create_body--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/modes/pygments_sh.py/replace_pattern