parameters: (extension)
return_statement: return extension
docstring: Normalize a given extension if it is a path.
docstring_summary: Normalize a given extension if it is a path.
docstring_tokens: Normalize a given extension if it is a path .
function: def _normalize_path(extension):
      """Normalize a given extension if it is a path.
      """
      extension = osp.expanduser(extension)
      if osp.exists(extension):
          extension = osp.abspath(extension)
      return extension
function_tokens: def _normalize_path ( extension ) : extension = osp . expanduser ( extension ) if osp . exists ( extension ) : extension = osp . abspath ( extension ) return extension