code: def detect_framework(value):
      # Get all base classes
      classes = inspect.getmro(value.__class__)
      for c in classes:
          if c.__module__.startswith("torch"):
              return "torch"
          elif c.__module__.startswith("tensorflow"):
              return "tensorflow"
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import re
  from random import getrandbits
  import inspect
  import numpy
  import html
label_desc: Use image node_id 1 for calling a global function with example usage: detect_framework(value) and returns: str, str