code: def get_milestone_number(self, version):
      return next(
          (
              m["number"]
              for m in self.get_milestones()
              if m["title"] == version
          ),
          None,
      )
  
imports: import configparser
  import os
  import pprint
  import re
  import subprocess
  import sys
  import requests
  import getpass
  from six.moves import input
  import six
label_desc: Use image node_id 3 for calling the GitHubAPI obj's underlying member method code with example usage: obj.get_milestone_number(version) and returns: next