code: def measure_str_key(inp, include_config=True):
      """get unique str key for MeasureInput
  
      Parameters
      ----------
      inp: autotvm.measure.MeasureInput
          input for the measure
      include_config: bool, optional
          whether includes config in the str key
  
      Returns
      -------
      key: str
          The str representation of key
      """
      config_str = str(inp.config) if include_config else ""
      return "".join(
          [
              str(inp.target),
              inp.task.name,
              str(inp.task.args),
              str(inp.task.kwargs),
              config_str,
          ]
      )
  
imports: import argparse
  import base64
  from io import TextIOBase
  import logging
  import pickle
  import json
  import time
  from typing import Union
  import os
  import itertools
  from collections import OrderedDict
  import numpy
  from ..None import build, lower
  from ..target import Target
  from ..contrib import popen_pool
  from ..None import __version__
  from .None import task
  from .task import ConfigEntity, ApplyHistoryBest
  from .measure import MeasureInput, MeasureResult
label_desc: Use image node_id 1 for calling a global function with example usage: measure_str_key(inp, include_config) and returns: str