code: def eval_str_to_list(input_str: str) -> List[str]:
      
      inner_cast = ast.literal_eval(input_str)  # type: List[str]
      if isinstance(inner_cast, list):
          return inner_cast
      else:
          raise ValueError
docs: Turn str into str or tuple.