code: def max_degree(G):
      """Get the maximum degree of any node in G."""
      return (
          max(G.degree(node) for node in G.nodes)
          if len(G.nodes) > 0
          else 0
      )
  
imports: import itertools
  import pytest
  import networkx
label_desc: Use image node_id 25 for calling a global function with example usage: max_degree(G) and returns: unknown