parameters: (self, cc_name, cc_version, cc_path, language)
return_statement: return res
docstring: package the chaincode to a tar.gz file.
          :param cc_name: chaincode name
          :param cc_version: chaincode version
          :param cc_path: where the chaincode is
          :param language: Chain code development language, default: golang
          :return 0 means success.
docstring_summary: package the chaincode to a tar.gz file.
          :param cc_name: chaincode name
          :param cc_version: chaincode version
          :param cc_path: where the chaincode is
          :param language: Chain code development language, default: golang
          :return 0 means success.
docstring_tokens: package the chaincode to a tar . gz file . : param cc_name : chaincode name : param cc_version : chaincode version : param cc_path : where the chaincode is : param language : Chain code development language default : golang : return 0 means success .
function: def lifecycle_package(self, cc_name, cc_version, cc_path, language):
          """
              package the chaincode to a tar.gz file.
          :param cc_name: chaincode name
          :param cc_version: chaincode version
          :param cc_path: where the chaincode is
          :param language: Chain code development language, default: golang
          :return 0 means success.
          """
          try:
              label = cc_name+"_"+cc_version
              res = os.system("{} lifecycle chaincode package {}.tar.gz --path {} --lang {} --label {}"
                              .format(self.peer, cc_name, cc_path, language, label))
              res = res >> 8
          except Exception as e:
              err_msg = "package chaincode failed for {}!".format(e)
              raise Exception(err_msg)
          return res
function_tokens: def lifecycle_package ( self , cc_name , cc_version , cc_path , language ) : try : label = cc_name + "_" + cc_version res = os . system ( "{} lifecycle chaincode package {}.tar.gz --path {} --lang {} --label {}" . format ( self . peer , cc_name , cc_path , language , label ) ) res = res >> 8 except Exception as e : err_msg = "package chaincode failed for {}!" . format ( e ) raise Exception ( err_msg ) return res