code: def printoptions(**kwargs):
      r"""Context manager that temporarily changes the print options.  Accepted
      arguments are same as :func:`set_printoptions`."""
      old_kwargs = get_printoptions()
      set_printoptions(**kwargs)
      try:
          yield
      finally:
          set_printoptions(**old_kwargs)
  
imports: import contextlib
  import dataclasses
  import math
  import textwrap
  from typing import Any, Dict, Optional
  import torch
  from torch import inf
label_desc: Use image node_id 3 for calling a global function with example usage: printoptions() without return types