code: def _conda_format(req):
      def _sub(m):
          name = m.group("name").lower()
          if name == "numpy":
              return "numpy x.x"
          if name == "tables":
              name = "pytables"
  
          formatted = "%s %s%s" % ((name,) + m.group("comp", "spec"))
          pycomp, pyspec = m.group("pycomp", "pyspec")
          if pyspec:
              # Compare the two-digit string versions as ints.
              selector = " # [int(py) %s int(%s)]" % (
                  pycomp,
                  "".join(pyspec.split(".")[:2]).ljust(2, "0"),
              )
              return formatted + selector
  
          return formatted
  
      return REQ_PATTERN.sub(_sub, req, 1)
  
imports: from __future__ import print_function
  import os
  import re
  import sys
  from operator import lt, gt, eq, le, ge
  from os.path import abspath, dirname, join
  from distutils.version import StrictVersion
  from setuptools import Extension, find_packages, setup
  import versioneer
label_desc: Use image node_id 4 for calling a global function with example usage: _conda_format(req) and returns: REQ_PATTERN, formatted, str, unknown