code: def _max_value(dtype: torch.dtype) -> int:
      if dtype == torch.uint8:
          return 255
      elif dtype == torch.int8:
          return 127
      elif dtype == torch.int16:
          return 32767
      elif dtype == torch.int32:
          return 2147483647
      elif dtype == torch.int64:
          return 9223372036854775807
      else:
          # This is only here for completeness. This value is implicitly assumed in a lot of places so changing it is not
          # easy.
          return 1
  
imports: import warnings
  from typing import List, Optional, Tuple, Union
  import torch
  from torch import Tensor
  from torch.nn.functional import conv2d, grid_sample, interpolate, pad
label_desc: Use image node_id 6 for calling a global function with example usage: _max_value(dtype) and returns: int, int, int, int, int, int