code: def accepted_arg_count(callable):
      if not (
          inspect.isfunction(callable) or inspect.ismethod(callable)
      ) and hasattr(callable, "__call__"):
          callable = callable.__call__
      if not inspect.ismethod(callable):
          implicit_args = 0
      else:
          implicit_args = 1
          callable = callable.__func__
      return callable.__code__.co_argcount - implicit_args
  
imports: from enum import Enum
  from nvidia.dali import types
  from nvidia.dali import tensors
  import inspect
  import functools
label_desc: Use image node_id 8 for calling a global function with example usage: accepted_arg_count(callable) and returns: unknown