code: def emb_sz_rule(n_cat: int) -> int:  # Cardinality of a category
      "Rule of thumb to pick embedding size corresponding to `n_cat`"
      return min(600, round(1.6 * n_cat**0.56))
  
file_path: fastai/fastai/tabular/model.py
imports: from __future__ import annotations
  from ..torch_basics import *
  from .core import *
label_desc: Use image node_id 1 for calling a global function with example usage: emb_sz_rule(n_cat) and returns: min