code: def drop_comment(line):
      """
      Drop comments.
  
      >>> drop_comment('foo # bar')
      'foo'
  
      A hash without a space may be in a URL.
  
      >>> drop_comment('http://example.com/foo#bar')
      'http://example.com/foo#bar'
      """
      return line.partition(" #")[0]
  
imports: import re
  import itertools
  import textwrap
  import functools
  from setuptools.extern.jaraco.functools import compose, method_cache
  from setuptools.extern.jaraco.context import ExceptionTrap
label_desc: Use image node_id 16 for calling a global function with example usage: drop_comment(line) and returns: line