code: 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
docs: Used to create a new task. Since tasks don't have names, the required
          'name' parameter is used for the type of task: 'import' or 'export'.