code: def _check_max_walks(
      self, attribute: attr.Attribute, max_walks: int
  ) -> None:
      """Checks if a given number of maximum walks per entity is correct.
  
      Args:
          attribute: The attribute.
          max_walks: The maximum walks per entity to check the validity.
  
      Raises:
          ValueError: If the maximum walks per entity is invalid.
  
      """
      if max_walks is not None and max_walks < 0:
          raise ValueError(
              f"'max_walks' must be None or > 0 (got {max_walks})"
          )
  
imports: import os
  import attr
  import requests
label_desc: Use image node_id 4 for calling a global function with example usage: _check_max_walks(attribute, max_walks) without return types