code: def _get_num_pos_args(f: Callable) -> int:
      """Get number of positional args for a function
  
      Example::
  
      >> def f(self, key1=3, key2=3):
             pass
      >> _get_num_pos_args(f)
      3
      """
      return len(getfullargspec(f).args)
  
imports: import functools
  import warnings
  from collections import OrderedDict
  from inspect import getfullargspec, signature
  from typing import Any, Callable, Dict, Optional, Tuple, Union
  import torch
  from torch.ao.quantization.quant_type import QuantType
  from torch.fx import Node
  from torch.nn.utils.parametrize import is_parametrized
label_desc: Use image node_id 30 for calling a global function with example usage: _get_num_pos_args(f) and returns: len