class_docstr: Module name mapping for transparent layer_stack.
class_docstr_tok: ["Module","name","mapping","for","transparent","layer_stack","."]
docstr: Creates stacked module name and scan index from flat name.
  
  Returns None when the module is not a part of layer_stack.  This happens
  when the caller module transparently calling layer_stack has its own
  parameters.  This function is basically inverse of `stacked_to_flat`,
  
  Args:
    unstacked_module_name: Name of the module to be converted to stacked.
  
  Returns:
    Name and layer index of the module when stacked.  None if the module is
    not part of the stack.
docstr_tok: ["Creates","stacked","module","name","and","scan","index","from","flat","name",".","Returns","None","when","the","module","is","not","a","part","of","layer_stack",".","This","happens","when","the","caller","module","transparently","calling","layer_stack","has","its","own","parameters",".","This","function","is","basically","inverse","of","`","stacked_to_flat","`",",","Args",":","unstacked_module_name",":","Name","of","the","module","to","be","converted","to","stacked",".","Returns",":","Name","and","layer","index","of","the","module","when","stacked",".","None","if","the","module","is","not","part","of","the","stack","."]
code: def flat_to_stacked(
      self, unstacked_module_name: str
  ) -> Optional[tuple[str, int]]:
      """Creates stacked module name and scan index from flat name.
  
      Returns None when the module is not a part of layer_stack.  This happens
      when the caller module transparently calling layer_stack has its own
      parameters.  This function is basically inverse of `stacked_to_flat`,
  
      Args:
        unstacked_module_name: Name of the module to be converted to stacked.
  
      Returns:
        Name and layer index of the module when stacked.  None if the module is
        not part of the stack.
      """
      ...
  
imports: import collections
  import functools
  import inspect
  from typing import Any, Callable, Optional, Protocol, Union
  from haiku._src import base
  from haiku._src import lift
  from haiku._src import module
  from haiku._src import transform
  import jax
  import jax.numpy
label_desc: Use image node_id 2 for calling the LayerStackTransparencyMapping obj's underlying member method code with example usage: obj.flat_to_stacked(unstacked_module_name) without return types