code: def effectful(
      fn: None = ..., type: Optional[str] = ...
  ) -> Callable[[Callable[_P, _T]], Callable[..., Optional[_T]]]:
      ...
  
imports: import functools
  from typing import TYPE_CHECKING, Callable, Dict, Generic, List, Optional, Set, Tuple, TypeVar, Union, overload
  import torch
  from typing_extensions import Literal, ParamSpec, TypedDict
  from pyro.params.param_store import _MODULE_NAMESPACE_DIVIDER, ParamStoreDict
label_desc: Use image node_id 4 for calling a global function with example usage: effectful(fn, type) without return types