code: def _clean_line(line, names):
      # Replace `some_import.spam` with `spam`
      if names:
          joined_names = "|".join(names)
          line = re.sub(rf"\b({joined_names})\.", "", line)
  
      # Replace useless assignments (e.g. `spam = spam`)
      return _USELESS_ASSIGNMENT_RE.sub("", line)
  
file_path: catboost/contrib/python/portalocker/py3/portalocker/__main__.py
imports: import argparse
  import logging
  import os
  import pathlib
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: _clean_line(line, names) and returns: _USELESS_ASSIGNMENT_RE