code: def _eval_args(args):
      
      res = []
      for arg in args:
          if not isinstance(arg, tuple):
              res.append(arg)
          elif is_callable_type(arg[0]):
              callable_args = _eval_args(arg[1:])
              if len(arg) == 2:
                  res.append(Callable[[], callable_args[0]])
              elif arg[1] is Ellipsis:
                  res.append(Callable[..., callable_args[1]])
              else:
                  res.append(Callable[list(callable_args[:-1]), callable_args[-1]])
          else:
              res.append(type(arg[0]).__getitem__(arg[0], _eval_args(arg[1:])))
      return tuple(res)
docs: Internal helper for get_args.