parameters: (
      name,  # type: str
      comes_from=None,  # type: Optional[Union[str, InstallRequirement]]
      use_pep517=None,  # type: Optional[bool]
      isolated=False,  # type: bool
      options=None,  # type: Optional[Dict[str, Any]]
      constraint=False,  # type: bool
      line_source=None,  # type: Optional[str]
      user_supplied=False,  # type: bool
  )
return_statement: return InstallRequirement(
          parts.requirement, comes_from, link=parts.link, markers=parts.markers,
          use_pep517=use_pep517, isolated=isolated,
          install_options=options.get("install_options", []) if options else [],
          global_options=options.get("global_options", []) if options else [],
          hash_options=options.get("hashes", {}) if options else {},
          constraint=constraint,
          extras=parts.extras,
          user_supplied=user_supplied,
      )
docstring: Creates an InstallRequirement from a name, which might be a
      requirement, directory containing 'setup.py', filename, or URL.
  
      :param line_source: An optional string describing where the line is from,
          for logging purposes in case of an error.
docstring_summary: Creates an InstallRequirement from a name, which might be a
      requirement, directory containing 'setup.py', filename, or URL.
docstring_tokens: Creates an InstallRequirement from a name which might be a requirement directory containing setup . py filename or URL .
function: def install_req_from_line(
      name,  # type: str
      comes_from=None,  # type: Optional[Union[str, InstallRequirement]]
      use_pep517=None,  # type: Optional[bool]
      isolated=False,  # type: bool
      options=None,  # type: Optional[Dict[str, Any]]
      constraint=False,  # type: bool
      line_source=None,  # type: Optional[str]
      user_supplied=False,  # type: bool
  ):
      # type: (...) -> InstallRequirement
      """Creates an InstallRequirement from a name, which might be a
      requirement, directory containing 'setup.py', filename, or URL.
  
      :param line_source: An optional string describing where the line is from,
          for logging purposes in case of an error.
      """
      parts = parse_req_from_line(name, line_source)
  
      return InstallRequirement(
          parts.requirement, comes_from, link=parts.link, markers=parts.markers,
          use_pep517=use_pep517, isolated=isolated,
          install_options=options.get("install_options", []) if options else [],
          global_options=options.get("global_options", []) if options else [],
          hash_options=options.get("hashes", {}) if options else {},
          constraint=constraint,
          extras=parts.extras,
          user_supplied=user_supplied,
      )
function_tokens: def install_req_from_line ( name , # type: str comes_from = None , # type: Optional[Union[str, InstallRequirement]] use_pep517 = None , # type: Optional[bool] isolated = False , # type: bool options = None , # type: Optional[Dict[str, Any]] constraint = False , # type: bool line_source = None , # type: Optional[str] user_supplied = False , # type: bool ) : # type: (...) -> InstallRequirement parts = parse_req_from_line ( name , line_source ) return InstallRequirement ( parts . requirement , comes_from , link = parts . link , markers = parts . markers , use_pep517 = use_pep517 , isolated = isolated , install_options = options . get ( "install_options" , [ ] ) if options else [ ] , global_options = options . get ( "global_options" , [ ] ) if options else [ ] , hash_options = options . get ( "hashes" , { } ) if options else { } , constraint = constraint , extras = parts . extras , user_supplied = user_supplied , )