def METHOD_NAME(self, tmp=None, task_vars=None):
    if task_vars is None:
        task_vars = {}
    self._maybe_convert_device_filter()
    module_args = self._task.args.copy()
    # Run regular module
    result = self._execute_module(module_name="inventory_to_container", module_args=module_args, task_vars=task_vars, tmp=tmp)
    if not result.get("failed") and module_args.get("inventory") is None and module_args.get("container_root") is not None:
        result["cvp_topology"] = self.build_cvp_topology_from_inventory(task_vars, module_args)
    # Write vars to file if set by user
    destination = module_args.get("destination")
    if destination is not None:
        # file should only contain subset of result data, so we build a smaller dict
        file_data_keys = ["cvp_configlets", "cvp_topology"]
        file_data = {key: result[key] for key in file_data_keys if key in result}
        with open(destination, "w", encoding="utf8") as file:
            yaml.dump(file_data, file, Dumper=AnsibleDumper)
    return result