code: def is_node(objecttype):
      
      if not isclass(objecttype):
          return False
  
      if not issubclass(objecttype, ObjectType):
          return False
  
      for i in objecttype._meta.interfaces:
          if issubclass(i, Node):
              return True
  
      return False
docs: Check if the given objecttype has Node as an interface