code: def is_weakrefable(obj):
      try:
          weakref.ref(obj)
          return True
      except TypeError:
          return False
  
imports: from __future__ import print_function, division, absolute_import
  import asyncio
  import concurrent.futures
  import contextlib
  import time
  from uuid import uuid4
  import weakref
  from .parallel import parallel_config
  from .parallel import AutoBatchingMixin, ParallelBackendBase
label_desc: Use image node_id 1 for calling a global function with example usage: is_weakrefable(obj) and returns: True, False