code: def dataclassNonDefaults(obj) -> dict:
      """
      For a ``dataclass`` instance get the fields that are different from the
      default values and return as ``dict``.
      """
      if not is_dataclass(obj):
          raise TypeError(f"Object {obj} is not a dataclass")
      values = [getattr(obj, field.name) for field in fields(obj)]
      return {
          field.name: value
          for field, value in zip(fields(obj), values)
          if value != field.default
          and value == value
          and not (isinstance(value, list) and value == [])
      }
  
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 4 for calling a global function with example usage: dataclassNonDefaults(obj) and returns: unknown