code: def is_in_requirements(self, package, filepath):
      if not os.path.exists(filepath):
          return False
      with open(filepath, "r") as f:
          # Extract package names, ignoring comments and version specifiers
          required_packages = [
              line.split("==")[0].split(">")[0].split("<")[0].strip()
              for line in f
              if not line.startswith("#") and line.strip()
          ]
          return package in required_packages
  
file_path: mindsdb/tests/unit/test_check_handler_imports.py
imports: import ast
  import importlib
  import logging
  import os
  import unittest
  from pathlib import Path
label_desc: Use image node_id 3 for calling the TestPackageImports obj's underlying member method code with example usage: obj.is_in_requirements(package, filepath) and returns: False, unknown