class_docstr: Structure containing information about one side of an `einops`-style pattern (e.g. 'b c (h w)').
class_docstr_tok: ["Structure","containing","information","about","one","side","of","an","`","einops","`","-style","pattern","(","e.g",".","'","b","c","(","h","w",")","'",")","."]
docstr: Check if the name is a valid axis name.
  
  Args:
      name (str): the axis name to check
  
  Returns:
      bool: whether the axis name is valid
docstr_tok: ["Check","if","the","name","is","a","valid","axis","name",".","Args",":","name","(","str",")",":","the","axis","name","to","check","Returns",":","bool",":","whether","the","axis","name","is","valid"]
code: def check_axis_name(name: str) -> bool:
      """Check if the name is a valid axis name.
  
      Args:
          name (str): the axis name to check
  
      Returns:
          bool: whether the axis name is valid
      """
      is_valid, _ = ParsedExpression.check_axis_name_return_reason(name)
      return is_valid
  
file_path: pytorch/functorch/einops/_parsing.py
imports: from __future__ import annotations
  import keyword
  import warnings
  from typing import Collection, List, Mapping, Optional, Set, Tuple, Union
label_desc: Use image node_id 3 for calling the ParsedExpression obj's underlying member method code with example usage: obj.check_axis_name(name) and returns: is_valid