code: def mg2k(m, g, M):
      """Convert from (m, g) indexing to k indexing."""
      return m + M * g
  
file_path: pyro/pyro/contrib/mue/statearrangers.py
imports: import torch
  import torch.nn
label_desc: Use image node_id 1 for calling a global function with example usage: mg2k(m, g, M) and returns: unknown