code: def _get_shared_lib_location(main_file: Any) -> str:
      import os
  
      directory = os.path.dirname(main_file)  # noqa: PTH120
      return os.path.join(  # noqa: PTH118
          directory, next(filter(is_shared_lib, os.listdir(directory)))
      )
  
imports: from __future__ import annotations
  import datetime
  import dis
  import inspect
  import re
  import sys
  import warnings
  from bisect import bisect_left
  from collections import defaultdict
  from dis import get_instructions
  from inspect import signature
  from itertools import count, zip_longest
  from pathlib import Path
  from typing import TYPE_CHECKING, AbstractSet, Any, Callable, ClassVar, Iterator, Literal, NamedTuple, Union
label_desc: Use image node_id 5 for calling a global function with example usage: _get_shared_lib_location(main_file) and returns: os