code: def pep561_stub_name(value: str) -> bool:
      top, *children = value.split(".")
      if not top.endswith("-stubs"):
          return False
      return python_module_name(
          ".".join([top[: -len("-stubs")], *children])
      )
  
imports: import logging
  import os
  import re
  import string
  import typing
  from itertools import chain
label_desc: Use image node_id 6 for calling a global function with example usage: pep561_stub_name(value) and returns: python_module_name, False