original_docstring: 
          Check whether the network card is available in monitoring mode
          
docstring: Check whether the network card is available in monitoring mode
docstring_tokens: Check whether the network card is available in monitoring mode
code: def check_env(self) -> bool:
          """
          Check whether the network card is available in monitoring mode
          """
  
          if self.system == "linux":
              if not re.search(b"\*\smonitor", run_code("sudo iw phy phy0 info")):
                  end("system unsupport monitor")
              return True
          elif self.system == "darwin":
              return True
          return False
code_tokens: def check_env ( self ) -> bool : if self . system == "linux" : if not re . search ( b"\*\smonitor" , run_code ( "sudo iw phy phy0 info" ) ) : end ( "system unsupport monitor" ) return True elif self . system == "darwin" : return True return False
short_docstring: Check whether the network card is available in monitoring mode
short_docstring_tokens: Check whether the network card is available in monitoring mode
comment: """
          Check whether the network card is available in monitoring mode
          """