code: def format_nvec(nvec):
      """Nice strings representing tuples of integers."""
  
      if isinstance(nvec, int):
          return str(nvec)
  
      return " ".join(f"{n: }" for n in nvec)
  
imports: from itertools import combinations
  import numpy
  import pennylane
label_desc: Use image node_id 1 for calling a global function with example usage: format_nvec(nvec) and returns: str, str