def METHOD_NAME(
    self, kind=None, labels=None
) -> typing.Union[mlrun.runtimes.MpiRuntimeV1, mlrun.runtimes.MpiRuntimeV1Alpha1]:
    runtime = code_to_function(
        name=self.name,
        project=self.project,
        filename=self.code_filename,
        handler=self.code_handler,
        kind=kind or self.runtime_kind,
        image=self.image_name,
        description="test mpijob",
        labels=labels,
    )
    return runtime