code: def num_features_model(m):
      "Return the number of output features for `m`."
      sz, ch_in = 32, in_channels(m)
      while True:
          # Trying for a few sizes in case the model requires a big input size.
          try:
              return model_sizes(m, (sz, sz))[-1][1]
          except Exception as e:
              sz *= 2
              if sz > 2048:
                  raise e
  
imports: from __future__ import annotations
  from ..basics import *
label_desc: Use image node_id 6 for calling a global function with example usage: num_features_model(m) and returns: model_sizes