code: def get_blocks_party_spaces():
      r = requests.get(path)
      d = r.json()
      spaces = [SpaceInfo(**x) for x in d]
      blocks_spaces = {}
      for i in range(0, len(spaces)):
          if (
              spaces[i].id.split("/")[0] == "Gradio-Blocks"
              and hasattr(spaces[i], "likes")
              and spaces[i].id != "Gradio-Blocks/Leaderboard"
              and spaces[i].id != "Gradio-Blocks/README"
          ):
              blocks_spaces[spaces[i].id] = spaces[i].likes
      df = pd.DataFrame(
          [
              {"Spaces_Name": Spaces, "likes": likes}
              for Spaces, likes in blocks_spaces.items()
          ]
      )
      df = df.sort_values(by=["likes"], ascending=False)
      return df
  
imports: import gradio
  import requests
  import pandas
  from huggingface_hub.hf_api import SpaceInfo
label_desc: Use image node_id 1 for calling a global function with example usage: get_blocks_party_spaces() and returns: df