code: def isnamedtupleinstance(x):
      """From https://stackoverflow.com/a/2166841/6067848"""
      t = type(x)
      b = t.__bases__
      if len(b) != 1 or b[0] != tuple:
          return False
      f = getattr(t, "_fields", None)
      if not isinstance(f, tuple):
          return False
      return all(type(n) is str for n in f)
  
imports: import asyncio
  import datetime
  import logging
  import math
  import signal
  import sys
  import time
  from dataclasses import fields, is_dataclass
  from typing import AsyncIterator, Awaitable, Callable, Iterator, List, Optional, Union
  import eventkit
label_desc: Use image node_id 7 for calling a global function with example usage: isnamedtupleinstance(x) and returns: all, False, False