docstr: Receive query as AST (abstract syntax tree) and act upon it somehow.
  Args:
      query (ASTNode): sql query represented as AST. May be any kind
          of query: SELECT, INSERT, DELETE, etc
  Returns:
      DataFrame
docstr_tok: ["Receive","query","as","AST","(","abstract","syntax","tree",")","and","act","upon","it","somehow",".","Args",":","query","(","ASTNode",")",":","sql","query","represented","as","AST",".","May","be","any","kind","of","query",":","SELECT",",","INSERT",",","DELETE",",","etc","Returns",":","DataFrame"]
code: def call_google_fit_api(
      self, method_name: str = None, params: dict = None
  ) -> pd.DataFrame:
      """Receive query as AST (abstract syntax tree) and act upon it somehow.
      Args:
          query (ASTNode): sql query represented as AST. May be any kind
              of query: SELECT, INSERT, DELETE, etc
      Returns:
          DataFrame
      """
      self.connect()
      if method_name == "get_steps":
          val = self.get_steps(params["start_time"], params["end_time"])
          return val
      raise NotImplementedError(
          "Method name {} not supported by Google Fit Handler".format(
              method_name
          )
      )
  
imports: import os.path
  import json
  import pandas
  import pytz
  from tzlocal import get_localzone
  from datetime import datetime
  from google.auth.transport.requests import Request
  from google.oauth2.credentials import Credentials
  from google_auth_oauthlib.flow import InstalledAppFlow
  from googleapiclient.discovery import Resource
  from googleapiclient.discovery import build
  from googleapiclient.errors import HttpError
  from mindsdb_sql import parse_sql
  from mindsdb.utilities import log
  from mindsdb.integrations.handlers.google_fit_handler.google_fit_tables import GoogleFitTable
  from mindsdb.integrations.libs.api_handler import APIHandler, FuncParser
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse
label_desc: Use image node_id 7 for calling the GoogleFitHandler obj's underlying member method code with example usage: obj.call_google_fit_api(method_name, params) and returns: val