code: def _parse(raw):
      if raw is None or isinstance(raw, (dict, list, int, float)):
          return raw
  
      assert isinstance(raw, str)
      try:
          return json.loads(raw)
      except json.JSONDecodeError:
          return raw
  
file_path: dvc/dvc/utils/diff.py
imports: import json
  from collections import defaultdict
  from typing import Dict
  from .flatten import flatten
label_desc: Use image node_id 1 for calling a global function with example usage: _parse(raw) and returns: raw, json, raw