code: def _all_or_none(values):
      return all(x is None for x in values) or all(
          x is not None for x in values
      )
  
imports: import enum
  import math
  import warnings
  from typing import Callable, Dict, List, Optional, Tuple, Union, cast
  import torch
  import torch.nn.functional
  from torch import Tensor, nn
  from .utils import init_weights
label_desc: Use image node_id 3 for calling a global function with example usage: _all_or_none(values) and returns: unknown