code: def _validate_non_negative_integer_or_none(self, value):
      if value is None:
          return
  
      if not isinstance(value, int):
          raise TypeError("expected value to be an integer")
  
      if value < 0:
          raise ValueError(
              "expected value to be non-negative", str(value)
          )
  
imports: import collections
label_desc: Use image node_id 3 for calling the Format obj's underlying member method code with example usage: obj._validate_non_negative_integer_or_none(value) without return types