code: def _is_morphology_file(filepath):
      
      return (
          os.path.isfile(filepath) and
          os.path.splitext(filepath)[1].lower() in ('.swc', '.h5', '.asc')
      )
docs: Check if `filepath` is a file with one of morphology file extensions.