parameters: (label_mapping_p)
return_statement: return label_mapping
docstring: Creates a Python dictionary mapping an index to a label.
  
      label_mapping[idx] = label
  
      args:
        - label_mapping_p: pathlib.Path
  
      returns:
        - label_mapping: dict
docstring_summary: Creates a Python dictionary mapping an index to a label.
docstring_tokens: Creates a Python dictionary mapping an index to a label .
function: def create_mapping(label_mapping_p):
      """Creates a Python dictionary mapping an index to a label.
  
      label_mapping[idx] = label
  
      args:
        - label_mapping_p: pathlib.Path
  
      returns:
        - label_mapping: dict
      """
      idx = 0
      label_mapping = {}
      with open(label_mapping_p) as label_mapping_raw:
          for line in label_mapping_raw:
              label_mapping[idx] = line
              idx += 1
  
      return label_mapping
function_tokens: def create_mapping ( label_mapping_p ) : idx = 0 label_mapping = { } with open ( label_mapping_p ) as label_mapping_raw : for line in label_mapping_raw : label_mapping [ idx ] = line idx += 1 return label_mapping