docstr: Used for API Call and Response Utterances -> Dict.
docstr_tok: ["Used","for","API","Call","and","Response","Utterances","-",">","Dict","."]
code: def str_to_api_dict(cls, string):
      """
      Used for API Call and Response Utterances -> Dict.
      """
      slot_strs = string.split(" ; ")
      result = {}
      for slot_str in slot_strs:
          if " = " not in slot_str:
              continue
          name, value = slot_str.split(" = ", 1)
          name = name.strip()
          value = SerializationHelpers.inner_list_split(value.strip())
          result[name] = value
      return result
  
imports: from enum import Enum
  from typing import List, Dict
  from dataclasses import dataclass, field
  from collections.abc import Iterable
  from parlai.utils.misc import warn_once
label_desc: Use image node_id 6 for calling the SerializationHelpers obj's underlying member method code with example usage: obj.str_to_api_dict(cls, string) and returns: result