code: def _get_basis_metadata(name, data_dir):
      '''Get metadata for a single basis set
  
      If the basis doesn't exist, an exception is raised
      '''
  
      # Transform the name into an internal representation
      tr_name = misc.transform_basis_name(name)
  
      # Get the metadata for all basis sets
      metadata = get_metadata(data_dir)
  
      if not tr_name in metadata:
          raise KeyError("Basis set {} does not exist".format(name))
  
      return metadata[tr_namef _get_basis_metadata(name, data_dir):
      '''Get metadata for a single basis set
  
      If the basis doesn't exist, an exception is raised
      '''
  
      # Transform the name into an internal representation
      tr_name = misc.transform_basis_name(name)
  
      # Get the metadata for all basis sets
      metadata = get_metadata(data_dir)
  
      if not tr_name in metadata:
          raise KeyError("Basis set {} does not exist".format(name))
  
      return metadata[tr_name]
docs: Get metadata for a single basis set
  
      If the basis doesn't exist, an exception is raised