class_docstr: The :class:`.TreeEntry` class contains information about a file-system
  entry.
docstr: Get whether the entry is a regular file.
  
  *follow_links* (:class:`bool` or :data:`None`) is whether to follow
  symbolic links. If this is :data:`True`, a symlink to a regular file
  will result in :data:`True`. Default is :data:`None` for :data:`True`.
  
  Returns whether the entry is a regular file (:class:`bool`).
docstr_tok: ["Get","whether","the","entry","is","a","regular","file",".","*","follow_links","*","(",":","class",":","`","bool","`","or",":","data",":","`","None","`",")","is","whether","to","follow","symbolic","links",".","If","this","is",":","data",":","`","True","`",",","a","symlink","to","a","regular","file","will","result","in",":","data",":","`","True","`",".","Default","is",":","data",":","`","None","`","for",":","data",":","`","True","`",".","Returns","whether","the","entry","is","a","regular","file","(",":","class",":","`","bool","`",")","."]
code: def is_file(self, follow_links: Optional[bool] = None) -> bool:
      """
      Get whether the entry is a regular file.
  
      *follow_links* (:class:`bool` or :data:`None`) is whether to follow
      symbolic links. If this is :data:`True`, a symlink to a regular file
      will result in :data:`True`. Default is :data:`None` for :data:`True`.
  
      Returns whether the entry is a regular file (:class:`bool`).
      """
      if follow_links is None:
          follow_links = True
  
      node_stat = self._stat if follow_links else self._lstat
      return stat.S_ISREG(node_stat.st_mode)
  
imports: import os
  import os.path
  import pathlib
  import posixpath
  import stat
  import sys
  import warnings
  from collections.abc import Collection, Iterable
  from dataclasses import dataclass
  from os import PathLike
  from typing import Any, AnyStr, Callable, Collection, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Set, Tuple, TypeVar, Union
  from .pattern import Pattern
label_desc: Use image node_id 3 for calling the TreeEntry obj's underlying member method code with example usage: obj.is_file(follow_links) and returns: stat